-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
82 lines (70 loc) · 2.02 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[project]
name = "asgi-babel"
version = "0.10.0"
description = "Internationalization (i18n) support for ASGI applications"
readme = "README.rst"
requires-python = ">=3.9"
license = { "text" = "MIT License" }
authors = [{ name = "Kirill Klenov", email = "[email protected]" }]
keywords = ["locale", "i18n", "l10n", "babel", "gettext", "translation", "asyncio", "trio", "asgi"]
classifiers = [
"Topic :: Software Development :: Internationalization",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Framework :: AsyncIO",
"Framework :: Trio",
]
dependencies = ["asgi-tools >= 0.73.0", "babel"]
[project.urls]
homepage = "https://github.com/klen/asgi-babel"
repository = "https://github.com/klen/asgi-babel"
[project.optional-dependencies]
tests = [
"pytest",
"pytest-aio[curio,trio] >= 1.1.0",
"pytest-mypy; implementation_name == 'cpython'",
"ruff",
]
example = ["uvicorn"]
dev = ["bump2version", "refurb; python_version >= '3.9'", "tox", "pre-commit"]
[tool.setuptools]
packages = ['asgi_babel']
[tool.setuptools.package-data]
asgi_babel = ["py.typed"]
[tool.pytest.ini_options]
addopts = "-xsv --mypy"
[tool.mypy]
packages = ["asgi_babel"]
ignore_missing_imports = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py39,py310,py311,py312,pypy39
[testenv]
deps = -e .[tests]
commands =
mypy
pytest tests
[testenv:pypy39]
deps = -e .[tests]
commands =
pytest tests
"""
[tool.ruff]
fix = true
line-length = 100
target-version = "py39"
exclude = [".venv", "docs", "examples"]
[tool.ruff.lint]
select = ["ALL"]
ignore = ["D", "UP", "ANN", "DJ", "EM", "RSE", "SLF", "S101", "PLR2004"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]