Skip to content

Commit

Permalink
Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed May 22, 2020
1 parent 7aaae6c commit a93f5f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Expand Up @@ -3,17 +3,15 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/psf/black
rev: 19.3b0
rev: 19.10b0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: flake8
additional_dependencies: ["flake8-bugbear==19.8.0"]
- id: fix-encoding-pragma
- id: check-case-conflict
- id: check-docstring-first
Expand All @@ -23,12 +21,17 @@ repos:
- id: check-xml
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/pycqa/flake8
rev: 3.8.1
hooks:
- id: flake8
additional_dependencies: ["flake8-bugbear==20.1.4"]
- repo: https://github.com/asottile/pyupgrade
rev: v1.25.1
rev: v2.4.3
hooks:
- id: pyupgrade
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.3
rev: v2.1.1
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
Expand Down
12 changes: 6 additions & 6 deletions tests/test_make_default_setup.py
Expand Up @@ -18,13 +18,13 @@

class TestMakeDefaultSetup(unittest.TestCase):
def _assert_no_diff(self, dc):
def _filter(l):
def _filter(names):
return [
i
for i in l
if not i.endswith(".pyc")
and not i.endswith(".egg-info")
and not i.endswith(".eggs")
name
for name in names
if not name.endswith(".pyc")
and not name.endswith(".egg-info")
and not name.endswith(".eggs")
]

if dc.right.endswith("addon4"):
Expand Down

0 comments on commit a93f5f6

Please sign in to comment.