Skip to content

Commit 504ceb3

Browse files
update linting
1 parent e2047f9 commit 504ceb3

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

pyproject.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ sources = ["snok", "tests"]
5959

6060
[tool.ruff]
6161
line-length = 88
62+
include = ["*.py"]
63+
exclude = ["dist", "build", ".venv", "snok/templates/*"]
64+
target-version = "py311"
65+
66+
[tool.ruff.lint]
6267
ignore = [
6368
"D10",
6469
"D203",
@@ -74,10 +79,11 @@ ignore = [
7479
"D413",
7580
"D415",
7681
]
77-
include = ["*.py"]
78-
exclude = ["dist", "build", ".venv", "snok/templates/*"]
7982
select = ["E", "F", "I"]
80-
target-version = "py311"
83+
84+
85+
[tool.ruff.lint.pydocstyle]
86+
convention = "google"
8187

8288
[tool.black]
8389
target-version = ["py311"]
@@ -108,9 +114,6 @@ ignore_missing_imports = true
108114
disallow_untyped_defs = true
109115
exclude = ["dist", "build", ".venv", "snok/templates/*"]
110116

111-
[tool.ruff.pydocstyle]
112-
convention = "google"
113-
114117
[tool.setuptools.package-data]
115118
snok = ["py.typed", "templates/**/*"]
116119

snok/templates/__shared/_pyproject_toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ exclude = ["tests"]
3939

4040
[tool.ruff]
4141
line-length = 88
42+
include = [
43+
"*.py",
44+
]
45+
target-version = "py310"
46+
47+
[tool.ruff.lint]
4248
ignore = [
4349
"D10",
4450
"D203",
@@ -54,15 +60,14 @@ ignore = [
5460
"D413",
5561
"D415",
5662
]
57-
include = [
58-
"*.py",
59-
]
6063
select = [
6164
"E",
6265
"F",
6366
"I",
6467
]
65-
target-version = "py310"
68+
69+
[tool.ruff.lint.pydocstyle]
70+
convention = "google"
6671

6772

6873
[tool.black]
@@ -94,9 +99,6 @@ exclude = ["dist", "build", ".venv"]
9499
module = "{{ __template_name }}._modal"
95100
ignore_errors = true
96101

97-
[tool.ruff.pydocstyle]
98-
convention = "google"
99-
100102
[tool.pytest.ini_options]
101103
addopts = [
102104
"-n",

0 commit comments

Comments
 (0)