Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c91b244

Browse files
committed
pyflakes -> flake8
1 parent 2c7ec7a commit c91b244

5 files changed

Lines changed: 9 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- repo: [email protected]:pre-commit/pre-commit-hooks
2-
sha: 84fbf05803f25fea2ad4a9509b3666840bf580b4
2+
sha: ca93f6834f2afc8a8f7de46c0e02076419077c7a
33
hooks:
44
- id: trailing-whitespace
55
files: \.(py|sh|yaml)$
@@ -11,13 +11,13 @@
1111
files: \.py$
1212
- id: name-tests-test
1313
files: tests/.+\.py$
14-
- id: pyflakes
14+
- id: flake8
1515
files: \.py$
16+
args: [--max-line-length=131]
1617
- repo: [email protected]:pre-commit/pre-commit
17-
sha: 3cfc49b522dee27cdcce83781cd874c5638ad6c1
18+
sha: 2c7ec7a744908896af3afd140346e690deca7782
1819
hooks:
1920
- id: validate_config
2021
files: ^\.pre-commit-config.yaml$
2122
- id: validate_manifest
2223
files: ^hooks.yaml$
23-
exclude: ^$

testing/auto_namedtuple.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import collections
22

3+
34
def auto_namedtuple(classname='auto_namedtuple', **kwargs):
45
"""Returns an automatic namedtuple object.
56

testing/resources/python_hooks_repo/foo/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
22

3+
34
def func():
45
print repr(sys.argv[1:])
56
print 'Hello World'

testing/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def copy_tree_to_path(src_dir, dest_dir):
2828
else:
2929
shutil.copy(srcname, destname)
3030

31+
3132
def is_valid_according_to_schema(obj, schema):
3233
try:
3334
jsonschema.validate(obj, schema)

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ commands =
1010
coverage erase
1111
coverage run -m pytest {posargs:tests}
1212
coverage report --show-missing --fail-under 93
13-
flake8 {[tox]project} tests setup.py
14-
# pylint {[tox]project} tests setup.py
13+
flake8 {[tox]project} testing tests setup.py
14+
# pylint {[tox]project} testing tests setup.py
1515

1616
[testenv:venv]
1717
envdir = venv-{[tox]project}

0 commit comments

Comments
 (0)