Skip to content

Commit

Permalink
add greenlet
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonycorletti committed Aug 2, 2023
1 parent 1fb052c commit ada1195
Showing 1 changed file with 50 additions and 12 deletions.
62 changes: 50 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = [
"setuptools",
"wheel",
]
build-backend = "setuptools.build_meta"

[project]
name = "snok"
description = "🚀 A simple, modern, full-stack toolkit for Python 🐍"
readme = "README.md"
dynamic = ["version"]
dynamic = [
"version",
]
requires-python = ">=3.11"
dependencies = [
"httpx>=0.24.1",
Expand All @@ -32,6 +37,7 @@ dev = [
"asgi-lifespan>=2.1.0",
"black>=21.10",
"coverage>=7.2.7",
"greenlet>=2.0.2",
"mdx-include>=1.4.2",
"mkdocs-material>=9.1.5",
"mkdocs>=1.4.2",
Expand All @@ -54,7 +60,10 @@ Documentation = "https://snok.corletti.xyz"
snok = "snok.cli:app"

[tool.snok]
sources = ["snok", "tests"]
sources = [
"snok",
"tests",
]

[tool.ruff]
line-length = 88
Expand All @@ -73,13 +82,26 @@ ignore = [
"D413",
"D415",
]
include = ["*.py"]
exclude = ["dist", "build", ".venv", "snok/templates/*"]
select = ["E", "F", "I"]
include = [
"*.py",
]
exclude = [
"dist",
"build",
".venv",
"snok/templates/*",
]
select = [
"E",
"F",
"I",
]
target-version = "py311"

[tool.black]
target-version = ["py311"]
target-version = [
"py311",
]
include = '\.pyi?$'
exclude = '''
/(
Expand All @@ -105,13 +127,21 @@ force-exclude = '''
python_version = "3.11"
ignore_missing_imports = true
disallow_untyped_defs = true
exclude = ["dist", "build", ".venv", "snok/templates/*"]
exclude = [
"dist",
"build",
".venv",
"snok/templates/*",
]

[tool.ruff.pydocstyle]
convention = "google"

[tool.setuptools.package-data]
snok = ["py.typed", "templates/**/*"]
snok = [
"py.typed",
"templates/**/*",
]

[tool.pytest.ini_options]
addopts = [
Expand All @@ -129,10 +159,16 @@ addopts = [
]

[tool.coverage.run]
omit = ["*__init__.py", "snok/templates/*"]
omit = [
"*__init__.py",
"snok/templates/*",
]

[tool.coverage.report]
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
]

[tool.coverage.html]
directory = "htmlcov"
Expand All @@ -144,4 +180,6 @@ output = "coverage.xml"
attr = "snok.__version__"

[tool.setuptools.packages.find]
exclude = ["tests"]
exclude = [
"tests",
]

0 comments on commit ada1195

Please sign in to comment.