mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-17 18:44:48 -04:00
34 lines
1 KiB
TOML
34 lines
1 KiB
TOML
# Lint all .py files and extra python scripts without extensions
|
|
exclude = ["addins/*"]
|
|
|
|
# Target oldest version of Python used (Python 3.9 for Ubuntu 20.04 LTS)
|
|
target-version = "py39"
|
|
|
|
line-length=250
|
|
|
|
[lint]
|
|
select = [
|
|
"F", # various basic rules (pyflakes)
|
|
"E", # errors (pycodestyle)
|
|
"W", # warnings (pycodestyle)
|
|
"I", # Import related rules (isort)
|
|
"UP", # Upgraded version available in newer Python
|
|
"B", # bugbear rules
|
|
"A", # shadow builtins
|
|
"EXE", # Executable file shebangs
|
|
"Q003", # Avoidable escaped quotes
|
|
"Q004", # Unnecessary esacpe character
|
|
"RUF", # Ruff specific rules
|
|
]
|
|
|
|
ignore = [
|
|
"E501", # line too long
|
|
"E701", "E702", # multiple statements on one line
|
|
"E722", # do not use bare 'except'
|
|
"E741", # ambiguous variable name
|
|
"W291", # trailing whitespace
|
|
"W293", # blank line contains whitespace
|
|
"B007", # loop control variable not used
|
|
"B9", # overly opinionated rules
|
|
"RUF005", # iterable unpacking in list
|
|
]
|