2023-08-08 06:55:35 +08:00
|
|
|
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
|
|
|
|
[tool.ruff]
|
2023-08-15 03:53:17 +08:00
|
|
|
select = ["E", "F", "W", "PIE", "C4", "ISC", "RUF100", "A"]
|
|
|
|
ignore = ["W292", "E741", "E402", "C408", "ISC003"]
|
2023-08-08 06:55:35 +08:00
|
|
|
line-length = 160
|
2023-08-15 03:53:17 +08:00
|
|
|
target-version="py311"
|
|
|
|
flake8-implicit-str-concat.allow-multiline=false
|
2023-08-18 11:19:01 +08:00
|
|
|
|
|
|
|
[mypy.tool]
|
|
|
|
# third-party packages
|
|
|
|
ignore_missing_imports=true
|
|
|
|
|
|
|
|
# helpful warnings
|
|
|
|
warn_redundant_casts=true
|
|
|
|
warn_unreachable=true
|
|
|
|
warn_unused_ignores=true
|
|
|
|
|
|
|
|
# restrict dynamic typing
|
|
|
|
warn_return_any=true
|
|
|
|
check_untyped_defs=true
|