2024-02-06 13:21:13 +08:00
|
|
|
[project]
|
|
|
|
requires-python = ">=3.10"
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
exclude = [
|
|
|
|
"__init__.py",
|
|
|
|
"tests/",
|
|
|
|
]
|
|
|
|
line-length = 120
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
ignore-init-module-imports = true
|
|
|
|
select = [
|
2024-02-08 14:11:10 +08:00
|
|
|
"F", # pyflakes rules
|
2024-02-06 13:21:13 +08:00
|
|
|
"I001", # unsorted-imports
|
|
|
|
"I002", # missing-required-import
|
2024-02-09 15:21:33 +08:00
|
|
|
"UP", # pyupgrade rules
|
2024-02-08 14:11:10 +08:00
|
|
|
]
|
|
|
|
ignore = [
|
|
|
|
"F403", # undefined-local-with-import-star
|
|
|
|
"F405", # undefined-local-with-import-star-usage
|
|
|
|
"F821", # undefined-name
|
|
|
|
"F841", # unused-variable
|
2024-02-09 15:21:33 +08:00
|
|
|
"UP007", # non-pep604-annotation
|
|
|
|
"UP032", # f-string
|
2024-02-06 13:21:13 +08:00
|
|
|
]
|