2023-08-07 05:29:28 +08:00
|
|
|
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
|
|
|
|
[tool.ruff]
|
|
|
|
line-length = 160
|
|
|
|
target-version="py311"
|
2024-02-25 05:56:28 +08:00
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
select = ["E", "F", "W", "PIE", "C4", "ISC", "RUF100", "A"]
|
|
|
|
ignore = ["W292", "E741", "E402", "C408", "ISC003"]
|
2023-08-15 03:52:02 +08:00
|
|
|
flake8-implicit-str-concat.allow-multiline=false
|
2024-02-14 08:48:17 +08:00
|
|
|
|
2024-04-19 08:59:33 +08:00
|
|
|
[tool.ruff.lint.flake8-tidy-imports.banned-api]
|
|
|
|
"pytest.main".msg = "pytest.main requires special handling that is easy to mess up!"
|
|
|
|
|
2024-02-14 08:48:17 +08:00
|
|
|
[tool.pytest.ini_options]
|
2024-09-07 04:30:05 +08:00
|
|
|
addopts = "-n auto --ignore-glob='*.sh'"
|