diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a7c8d931b..598bb99ae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,3 +14,4 @@ repos: - id: flake8 args: ["--max-line-length=119"] # strange behavior, have to duplicate arg here to be taken into account language_version: python3 + exclude: migrations/ diff --git a/pyproject.toml b/pyproject.toml index c12ab933c..dbc2d2362 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,6 +86,11 @@ requires = ["poetry-core>=1.0.0"] max-line-length = 119 ignore = "E203, E266, W503" max-complexity = 10 +exclude = [ + ".git", + "__pycache__", + "migrations" +] [tool.isort] combine_as_imports = true