Skip to content

Commit 88bc2bb

Browse files
ci: update ruff rules
1 parent 1f17687 commit 88bc2bb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

{{cookiecutter.project_slug}}/ruff.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ exclude = [
3737
"venv",
3838
]
3939

40-
# Assume Python 3.13
41-
target-version = "py313"
40+
# Assume Python 3.11
41+
target-version = "py311"
4242

4343
[format]
4444
# Use spaces instead of tabs
@@ -64,6 +64,12 @@ select = [
6464
"SIM",
6565
# isort
6666
"I",
67+
# deprecated-import (typing.List -> list, etc.)
68+
"UP035",
69+
# ternary operator instead of if-else block
70+
"SIM108",
71+
# raise from within except clause
72+
"B904",
6773
]
6874
ignore = ["D203", "E203", "E251", "E266", "E401", "E402", "E501", "F401", "F403", "F841"]
6975

0 commit comments

Comments
 (0)