Skip to content

Commit b307930

Browse files
committed
Integrate many pre-commit hooks
1 parent f3e8274 commit b307930

37 files changed

+280
-127
lines changed

.coveragerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ exclude_lines =
99
if __name__ == .__main__.:
1010
def __str__
1111
def __repr__
12-

.idea/ContextShell.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dictionaries/idlecode.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/scopes/Sources.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/scopes/Tests.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.pre-commit-config.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
exclude: '^\.idea/.*$'
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: master
5+
hooks:
6+
- id: check-executables-have-shebangs
7+
- id: check-merge-conflict
8+
- id: debug-statements
9+
- id: end-of-file-fixer
10+
- id: trailing-whitespace
11+
- repo: https://github.com/pre-commit/mirrors-mypy
12+
rev: master
13+
hooks:
14+
- id: mypy
15+
files: 'contextshell|tests'
16+
# - repo: https://github.com/guykisel/prospector-mirror
17+
# rev: master
18+
# hooks:
19+
# - id: prospector
20+
# exclude: "tests"
21+
- repo: https://github.com/asottile/pyupgrade
22+
rev: master
23+
hooks:
24+
- id: pyupgrade
25+
args:
26+
- --py36-plus
27+
- repo: https://github.com/doublify/pre-commit-isort
28+
rev: master
29+
hooks:
30+
- id: isort
31+
- repo: https://github.com/ambv/black
32+
rev: master
33+
hooks:
34+
- id: black
35+
exclude: "tests"
36+
args:
37+
- -l 100
38+
- --py36

.pylintrc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,10 @@ disable=print-statement,
140140
deprecated-sys-function,
141141
exception-escape,
142142
comprehension-escape,
143-
C0111, # Missing docstrings # TODO: re-enable when interfaces are more stable
144-
W0511 # fixme-like strings
143+
bad-continuation,
144+
too-few-public-methods, # TODO: re-enable when interfaces are more stable
145+
C0111, # Missing docstrings # TODO: re-enable when interfaces are more stable
146+
W0511 # fixme-like strings
145147

146148
# Enable the message, report, category or checker with the given id(s). You can
147149
# either give multiple identifier separated by comma (,) or put this option

0 commit comments

Comments
 (0)