Slide 21
Slide 21 text
Copyright © NIFTY Corporation All Rights Reserved.
ツールの設定値をpyproject.tomlにまとめる
[tool.ruff]
select = [
# pyflakes
"F",
# pycodestyle errors, warnings
"E",
"W",
# isort
"I",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
]
target-version = "py311"
line-length = 120
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
strict = true
[tool.black]
line-length = 120
target-version = ["py311"]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
今まで紹介したツールはpyproject.tomlに⼀元管理できる