diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..5573dc5a --- /dev/null +++ b/.flake8 @@ -0,0 +1,10 @@ +[flake8] +ignore = E203, E266, E501, W503, F403, F401, W191 +max-line-length = 120 +max-complexity = 18 +select = B,C,E,F,W,T4,B9 +exclude = + .git, + __pycache__, + docs/conf.py + tests diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4bfbd252..bb63f470 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,3 +12,7 @@ repos: hooks: - id: black args: [--line-length=120] +- repo: https://github.com/pycqa/flake8 + rev: 4.0.0 + hooks: + - id: flake8 diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 00000000..0164b67a --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,3 @@ +black +flake8 +pre-commit