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 38 39 40 41 42
|
target-version = 'py39'
line-length = 120
[lint]
select = ['F', 'E', 'W', 'C90', 'B', 'I', 'N', 'D', 'YTT', 'ANN', 'S', 'FBT', 'A', 'C4', 'DTZ', 'T10', 'EXE', 'ISC',
'G', 'INP', 'T20', 'PT', 'Q', 'RSE', 'RET', 'SLF', 'SIM', 'TID', 'TCH', 'ARG', 'PTH', 'ERA', 'PL', 'TRY',
'RUF']
ignore = [
'D203',
'D213',
'D406',
'D407',
'ANN401',
'TRY003',
'C901',
'N999',
]
[lint.per-file-ignores]
'doc/source/conf.py' = ['A001', 'ERA001', 'INP001']
'gjson/_cli.py' = ['T201']
'setup.py' = ['EXE001']
[lint.flake8-annotations]
mypy-init-return = true
[lint.flake8-bandit]
check-typed-exception = true
[lint.flake8-pytest-style]
parametrize-values-type = 'tuple'
raises-extend-require-match-for = [
'GJSONError',
'GJSONParseError',
'GJSONInvalidSyntaxError',
]
[lint.flake8-quotes]
inline-quotes = 'single'
[lint.pydocstyle]
convention = 'google'
|