mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Add ruff.toml configuration file
This commit is contained in:
parent
f4d6e2003b
commit
3f53886574
31
.ruff.toml
Normal file
31
.ruff.toml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Lint all .py files and extra python scripts without extensions
|
||||||
|
include = ["*.py", "bin/wsim", "bin/regression-wally", "bin/iterelf", "sim/vcs/run_vcs"]
|
||||||
|
exclude = ["addins/*", "tests/wally-riscv-arch-test/riscv-test-suite/rv64i_m/Q/*", "tests/fp/quad/fpdatasetgen.py"]
|
||||||
|
|
||||||
|
# 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
|
||||||
|
"E101", # indentation contains mixed spaces and tabs
|
||||||
|
"E4", # imports
|
||||||
|
"E7", # various improvements
|
||||||
|
"E9", # error
|
||||||
|
"W1", # tabs used instead of spaces
|
||||||
|
"W292", # no newline at end of file
|
||||||
|
"UP", # Upgraded version available in newer Python
|
||||||
|
"EXE", # Executable file shebangs
|
||||||
|
"Q003", # Avoidable escaped quotes
|
||||||
|
"Q004", # Unnecessary esacpe character
|
||||||
|
"RUF", # Ruff specific rules
|
||||||
|
]
|
||||||
|
|
||||||
|
ignore = [
|
||||||
|
"E701", "E702", # multiple statements on one line
|
||||||
|
"E722", # do not use bare 'except'
|
||||||
|
"E74", # ambiguous name
|
||||||
|
"RUF005", # iterable unpacking in list
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user