Skip to content

Commit ada1195

Browse files
add greenlet
1 parent 1fb052c commit ada1195

File tree

1 file changed

+50
-12
lines changed

1 file changed

+50
-12
lines changed

pyproject.toml

Lines changed: 50 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = [
3+
"setuptools",
4+
"wheel",
5+
]
36
build-backend = "setuptools.build_meta"
47

58
[project]
69
name = "snok"
710
description = "🚀 A simple, modern, full-stack toolkit for Python 🐍"
811
readme = "README.md"
9-
dynamic = ["version"]
12+
dynamic = [
13+
"version",
14+
]
1015
requires-python = ">=3.11"
1116
dependencies = [
1217
"httpx>=0.24.1",
@@ -32,6 +37,7 @@ dev = [
3237
"asgi-lifespan>=2.1.0",
3338
"black>=21.10",
3439
"coverage>=7.2.7",
40+
"greenlet>=2.0.2",
3541
"mdx-include>=1.4.2",
3642
"mkdocs-material>=9.1.5",
3743
"mkdocs>=1.4.2",
@@ -54,7 +60,10 @@ Documentation = "https://snok.corletti.xyz"
5460
snok = "snok.cli:app"
5561

5662
[tool.snok]
57-
sources = ["snok", "tests"]
63+
sources = [
64+
"snok",
65+
"tests",
66+
]
5867

5968
[tool.ruff]
6069
line-length = 88
@@ -73,13 +82,26 @@ ignore = [
7382
"D413",
7483
"D415",
7584
]
76-
include = ["*.py"]
77-
exclude = ["dist", "build", ".venv", "snok/templates/*"]
78-
select = ["E", "F", "I"]
85+
include = [
86+
"*.py",
87+
]
88+
exclude = [
89+
"dist",
90+
"build",
91+
".venv",
92+
"snok/templates/*",
93+
]
94+
select = [
95+
"E",
96+
"F",
97+
"I",
98+
]
7999
target-version = "py311"
80100

81101
[tool.black]
82-
target-version = ["py311"]
102+
target-version = [
103+
"py311",
104+
]
83105
include = '\.pyi?$'
84106
exclude = '''
85107
/(
@@ -105,13 +127,21 @@ force-exclude = '''
105127
python_version = "3.11"
106128
ignore_missing_imports = true
107129
disallow_untyped_defs = true
108-
exclude = ["dist", "build", ".venv", "snok/templates/*"]
130+
exclude = [
131+
"dist",
132+
"build",
133+
".venv",
134+
"snok/templates/*",
135+
]
109136

110137
[tool.ruff.pydocstyle]
111138
convention = "google"
112139

113140
[tool.setuptools.package-data]
114-
snok = ["py.typed", "templates/**/*"]
141+
snok = [
142+
"py.typed",
143+
"templates/**/*",
144+
]
115145

116146
[tool.pytest.ini_options]
117147
addopts = [
@@ -129,10 +159,16 @@ addopts = [
129159
]
130160

131161
[tool.coverage.run]
132-
omit = ["*__init__.py", "snok/templates/*"]
162+
omit = [
163+
"*__init__.py",
164+
"snok/templates/*",
165+
]
133166

134167
[tool.coverage.report]
135-
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]
168+
exclude_lines = [
169+
"pragma: no cover",
170+
"raise NotImplementedError",
171+
]
136172

137173
[tool.coverage.html]
138174
directory = "htmlcov"
@@ -144,4 +180,6 @@ output = "coverage.xml"
144180
attr = "snok.__version__"
145181

146182
[tool.setuptools.packages.find]
147-
exclude = ["tests"]
183+
exclude = [
184+
"tests",
185+
]

0 commit comments

Comments
 (0)