Skip to content

Commit

Permalink
Fix new issues with the last flake8 version
Browse files Browse the repository at this point in the history
  • Loading branch information
llaumgui committed Oct 29, 2018
1 parent 6ce3b5f commit 880df64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions seedboxsync/seedboxsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __get_config_file(self):
if os.path.isfile(seedbox_ini):
config_file = seedbox_ini
break
except Exception as exc:
except Exception:
pass

if config_file is None:
Expand Down Expand Up @@ -372,7 +372,7 @@ def __exclude_by_pattern(self, filepath):

try:
match = re.search(pattern, filepath)
except sre_constants.error as exc:
except sre_constants.error:
raise ConfigurationException('Bad configuration for exclude_syncing ! See the doc at https://docs.python.org/3/library/re.html')

if match is None:
Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ deps =
check-manifest
readme_renderer
flake8
flake8-colors
commands =
check-manifest
python setup.py check -m -s
flake8 .

[flake8]
ignore = W504
max-line-length = 160
exclude = .tox,*.egg,build/*,docs/*
select = E,W,F
select = E,W,F
max-complexity = 10
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s

0 comments on commit 880df64

Please sign in to comment.