diff --git a/.flake8 b/.flake8 new file mode 100644 index 000000000..b1ab5f3b7 --- /dev/null +++ b/.flake8 @@ -0,0 +1,12 @@ +[flake8] +ignore = E203, E266, E501, W503, F403, F401 +max-line-length = 88 +max-complexity = 18 +select = B,C,E,F,W,T4,B9 +exclude = + .git, + __pycache__, + docs/conf.py, + build, + dist, + test, \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0bf5c38e9..b6e3f1b1f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -52,4 +52,6 @@ repos: hooks: - id: flake8 name: Flake8 - additional_dependencies: ["flake8-bugbear==22.9.11"] +# Not using bugbear for now +# additional_dependencies: ["flake8-bugbear==22.9.11"] + exclude: (ui/|test/) diff --git a/pyproject.toml b/pyproject.toml index 4a7a27796..71e16d13f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,7 @@ sphinxcontrib-httpdomain = "^1.8.1" [tool.black] line-length = 88 +preview = true include = '\.pyi?$' exclude = ''' /( @@ -68,6 +69,9 @@ exclude = ''' | buck-out | build | dist + | test + | ui + | docs )/ '''