fix: migrate ruff.toml to lint section and add pytest to dev dependencies
This commit is contained in:
parent
2e0cf2bf7b
commit
844cf78c89
2 changed files with 4 additions and 2 deletions
|
|
@ -24,5 +24,6 @@ cuda = [
|
|||
[dependency-groups]
|
||||
dev = [
|
||||
"pre-commit>=4.0.0",
|
||||
"pytest>=8.0.0",
|
||||
"ruff>=0.15.2",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
[lint]
|
||||
extend-select = [
|
||||
# "PLC0103", # invalid-name
|
||||
# "PLC0104", # disallowed-name
|
||||
|
|
@ -43,7 +44,7 @@ extend-select = [
|
|||
"PLC2801", # unnecessary-dunder-call
|
||||
# "PLC3001", # unnecessary-lambda-assignment
|
||||
"PLC3002", # unnecessary-direct-lambda-call
|
||||
"E999", # syntax-error
|
||||
# "E999", # syntax-error (removed from ruff)
|
||||
# "PLE0011", # unrecognized-inline-option
|
||||
# "PLE0013", # bad-plugin-value
|
||||
# "PLE0014", # bad-configuration-section
|
||||
|
|
@ -298,7 +299,7 @@ extend-select = [
|
|||
# "PLW4906", # deprecated-attribute
|
||||
]
|
||||
|
||||
ignore = [
|
||||
extend-ignore = [
|
||||
# "PLC0116", # missing-function-docstring
|
||||
# "PLC0200", # consider-using-enumerate
|
||||
# "PLC0305", # trailing-newlines
|
||||
|
|
|
|||
Reference in a new issue