-
Notifications
You must be signed in to change notification settings - Fork 60
/
setup.cfg
37 lines (32 loc) · 1.07 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[flake8]
ignore =
# Line break occurred before a binary operator (W503)
# https://github.com/psf/black/issues/52
W503,
# Line too long (E501)
# 1. black does not format comments
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#comments
# 2. long links in doc strings are an issue
E501
# flake8-builtins
# the likelihood of running into an issue when shadowing a buildin
# with a class attribute is very low
A003,
# flake8-bugbear
# fastapi recommends to use `Depend()` as an argument default.
# Unfortuantely, exceptions are hardcoded in bugbear.
# https://github.com/PyCQA/flake8-bugbear/issues/62
B008,
# pep8-naming
classmethod-decorators =
classmethod, # built-in
validator, # pydantic
root_validator, # pydantic
enable-extensions=
G, # flake8-logging-format
per-file-ignores =
# star imports in `__init__.py` files are ok
*/__init__.py: F401
# Enables maccabe complexity checks
max-complexity = 10
exclude = .git,__pycache__,old,build,dist,.venv,.eggs,.tox