generated from brenozd/python-template
40 lines
789 B
TOML
40 lines
789 B
TOML
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py313"
|
|
|
|
select = [
|
|
"ALL", # include all the rules, including new ones
|
|
]
|
|
ignore = [
|
|
#### modules
|
|
"ANN", # flake8-annotations
|
|
"COM", # flake8-commas
|
|
"C90", # mccabe complexity
|
|
"DJ", # django
|
|
"EXE", # flake8-executable
|
|
"T10", # debugger
|
|
"TID", # flake8-tidy-imports
|
|
|
|
#### specific rules
|
|
# ignore missing docs for classes, modules, methods and etc
|
|
"D100",
|
|
"D101",
|
|
"D102",
|
|
"D103",
|
|
"D104",
|
|
"D105",
|
|
"D106",
|
|
"D107",
|
|
# ignore one-line doc string
|
|
"D200",
|
|
"D205",
|
|
"D212",
|
|
"D400",
|
|
"D401",
|
|
"D415",
|
|
"E402", # module import not at top of file
|
|
"E501", # line too long
|
|
"TD002", # missing todo author
|
|
"TD003", # missing todo link
|
|
]
|