Skip to content

Commit

Permalink
Update flake8 to 3.6.0, prettify config
Browse files Browse the repository at this point in the history
  • Loading branch information
𝐢𝐁𝐮𝐠 ♦ committed Dec 7, 2018
1 parent 6134e20 commit d093435
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion classes/_Git_Windows.py
Expand Up @@ -79,7 +79,7 @@ def push(*args):
_call_process(execcmd)

# remote.update
class remote:
class remote: # noqa: N801
@staticmethod
def update(*args):
execcmd = "git remote update " + " ".join(args)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -8,7 +8,7 @@ websocket-client==0.42.1
coverage>=4.5.1
pytest>=3.4.1
phonenumbers>=8.8.11
flake8~=3.5.0
flake8~=3.6.0
pep8-naming==0.5.0
regex>=2018.2.21
termcolor>=1.1.0
Expand Down
10 changes: 9 additions & 1 deletion tox.ini
@@ -1,4 +1,12 @@
[flake8]
ignore = F403,E402,F405,N804,N813,F401
ignore =
E402, # Module-level import not at top
F401, # Imported but unused
F403, # from import *
F405, # Same as above
F841, # Local variable unused
# N804, # First argument of @classmethod should be 'cls'
N813, # Camel case imported as lowercase
W504 # Line brak after binary operator
exclude = ChatExchange/*,.idea/*,.git/*,test/*,classes/*,env/*,venv/*
max-line-length = 120
11 changes: 10 additions & 1 deletion tox_classes.ini
@@ -1,3 +1,12 @@
[flake8]
ignore = E501,F403,E402,F405,N804,F401,N801
ignore =
E402,
E501,
F401,
F403,
F405

# Disabled:
# N801, # class name should use CapWords
# N804 # First argument of @classmethod should be 'cls'
exclude = ChatExchange/*,.idea/*,.git/*
9 changes: 8 additions & 1 deletion tox_tests.ini
@@ -1,3 +1,10 @@
[flake8]
ignore = E501,F403,E402,F401,F405,N804,E722,E731
ignore =
E402,
E501,
E722, # bare 'except:'
E731, # assigning lambda
F401,
F403,
F405
exclude = ChatExchange/*,.idea/*,.git/*

0 comments on commit d093435

Please sign in to comment.