Enable PTH in ruff
This commit is contained in:
parent
0cb924b3b6
commit
9cc21f5b69
1 changed files with 6 additions and 2 deletions
|
|
@ -243,6 +243,8 @@ select = [
|
|||
# ========================================
|
||||
# `ruff` only (no working `flake8` plugin)
|
||||
# ========================================
|
||||
# flake8-use-pathlib => `pathlib` instead of `os` functions
|
||||
# "PTH",
|
||||
# pyupgrade => Modern syntax for the targeted Python version
|
||||
# "UP",
|
||||
]
|
||||
|
|
@ -513,6 +515,8 @@ select = [
|
|||
"ICN",
|
||||
# Pylint's refactoring rules => simpler and smaller functions
|
||||
"PLR",
|
||||
# flake8-use-pathlib => `pathlib` instead of `os` functions
|
||||
"PTH",
|
||||
# flake8-print => no `print()`
|
||||
"T20",
|
||||
# pyupgrade => Modern syntax for the targeted Python version
|
||||
|
|
|
|||
Loading…
Reference in a new issue