Skip to content

Commit dce866a

Browse files
authored
Merge pull request #19 from idle-code/feature/commit-hooks
Feature/commit hooks
2 parents f3e8274 + 2289a54 commit dce866a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+404
-218
lines changed

.coveragerc

-1
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dictionaries/idlecode.xml

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/scopes/Sources.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/scopes/Tests.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.pre-commit-config.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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/asottile/pyupgrade
12+
rev: master
13+
hooks:
14+
- id: pyupgrade
15+
args:
16+
- --py36-plus
17+
- repo: https://github.com/doublify/pre-commit-isort
18+
rev: master
19+
hooks:
20+
- id: isort
21+
args:
22+
- --multi-line=3
23+
- --keep-direct-and-as
24+
- repo: https://github.com/ambv/black
25+
rev: master
26+
hooks:
27+
- id: black
28+
exclude: "tests"
29+
args:
30+
- -l 100
31+
- --py36
32+
- repo: https://github.com/guykisel/prospector-mirror
33+
rev: master
34+
hooks:
35+
- id: prospector
36+
exclude: "tests"
37+
- repo: https://github.com/pre-commit/mirrors-mypy
38+
rev: master
39+
hooks:
40+
- id: mypy
41+
files: 'contextshell|tests'

.pylintrc

+5-3
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
@@ -523,7 +525,7 @@ max-locals=10
523525
max-parents=5
524526

525527
# Maximum number of public methods for a class (see R0904).
526-
max-public-methods=20
528+
max-public-methods=30
527529

528530
# Maximum number of return / yield for function / method body.
529531
max-returns=6

Pipfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7+
pre-commit = "*"
8+
9+
[dev-packages]
10+
mypy = "*"
711
coverage = "==5.0a1"
812
pylint = "*"
913
git-pylint-commit-hook = "*"
10-
11-
[dev-packages]
14+
pre-commit = "*"
1215

1316
[requires]
1417
python_version = "3.7"

Pipfile.lock

+200-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

all_tests.sh

-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ if [[ $TESTS_PASSED -eq 0 ]];
1616
then
1717
coverage report -m
1818
fi
19-

0 commit comments

Comments
 (0)