|
| 1 | + |
| 2 | +line-length = 88 |
| 3 | +exclude = ["**/migrations/*.py"] |
| 4 | +ignore = [ |
| 5 | + "B017", # assert-raises-exception |
| 6 | + "D105", # Missing docstring in magic method |
| 7 | + "D107", # undocumented-public-init |
| 8 | + "D202", # blank-line-after-function |
| 9 | + "D203", # incorrect-blank-line-before-class |
| 10 | + "D211", # blank-line-before-class |
| 11 | + "D213", # multi-line-summary-second-line |
| 12 | + "D400", # First line should end with a period |
| 13 | + "D401", # non-imperative-mood |
| 14 | + "D403", # first-word-uncapitalized |
| 15 | + "D415", # missing-terminal-punctuation |
| 16 | + #"S101", # assert |
| 17 | + "S113", # request-without-timeout |
| 18 | + "S310", # suspicious-url-open-usage |
| 19 | + "S603", # subprocess-without-shell-equals-true |
| 20 | + #"S608", # hardcoded-sql-expression |
| 21 | +] |
| 22 | + |
| 23 | +[format] |
| 24 | +quote-style = "double" |
| 25 | +indent-style = "space" |
| 26 | +skip-magic-trailing-comma = false |
| 27 | +line-ending = "auto" |
| 28 | + |
| 29 | + |
| 30 | +[lint] |
| 31 | +select = [ |
| 32 | + "E", # pycodestyle |
| 33 | + "F", # Pyflakes |
| 34 | + "UP", # pyupgrade |
| 35 | + "B", # flake8-bugbear: opinionated bug & design warnings |
| 36 | + "SIM", # flake8-simplify |
| 37 | + "I", # isort: imports |
| 38 | + "S", # flake8-bandit: Security issues |
| 39 | + "A", # flake8-builtins |
| 40 | + "C4", # flake8-comprehensions |
| 41 | + "D", # pydocstyle |
| 42 | +] |
| 43 | + |
| 44 | +[lint.isort] |
| 45 | +combine-as-imports = true |
| 46 | +force-sort-within-sections = true |
0 commit comments