File size: 1,614 Bytes
20d6bb2 |
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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
extend-exclude = []
line-length = 88
indent-width = 4
target-version = "py310"
show-fixes = true
src = [".", "modules"]
[lint]
select = [
"E", "F", "B", "Q", "I", "C90", "N", "D", "UP", "YTT", "ANN", "S", "BLE",
"FBT", "A", "COM", "C4", "DTZ", "T10", "EM", "EXE", "ISC", "ICN", "INP",
"PIE", "T20", "PT", "Q", "RET", "SIM", "ARG", "ERA", "PD", "PGH", "PL",
"TRY", "RUF",
]
ignore = [
"D105",
"D107",
"D203",
"D213",
"S101", # assert-used
"INP001", # implicit-namespace-package
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"ANN204", # missing-return-type-special-method
"ERA001", # commented-out-code
"ANN002", # missing-type-args
"ANN003", # missing-type-kwargs
"RET504", # unnecessary-assign
"COM812", # TBD: some conflict
"ISC001", # TBD: some conflict
]
fixable = ["ALL"]
unfixable = []
[format]
quote-style = "double"
indent-style = "space"
[lint.isort]
# force-sort-within-sections and lines-between-types should be incompatible
force-sort-within-sections = false
lines-between-types = 1
force-single-line = true
no-sections = false
from-first = false
[lint.pydocstyle]
convention = "google"
|