diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,10 +3,23 @@ rev: v2.4.0 hooks: - id: trailing-whitespace - - id: flake8 - id: check-json - id: check-yaml +# we need the master of pyflakes to have support for @overload on methods, +# so we use a local config for now +# - repo: https://gitlab.com/pycqa/flake8 +# hooks: +# - id: flake8 +- repo: local + hooks: + - id: flake8 + name: flake8 + entry: flake8 + pass_filenames: true + language: system + types: [python] + - repo: https://github.com/codespell-project/codespell rev: v1.16.0 hooks: diff --git a/tox.ini b/tox.ini --- a/tox.ini +++ b/tox.ini @@ -19,6 +19,7 @@ [testenv:flake8] skip_install = true deps = + git+https://github.com/PyCQA/pyflakes.git flake8 commands = {envpython} -m flake8