This repository was archived by the owner on Oct 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (123 loc) · 3 KB
/
Copy pathpyproject.toml
File metadata and controls
144 lines (123 loc) · 3 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[project]
name = "everett"
description = "Configuration library for Python applications"
version = "3.5.0"
readme = "README.rst"
keywords = ["conf", "config", "configuration", "ini", "env", "yaml"]
authors = [{name = "Will Kahn-Greene"}]
license = {text = "MPLv2"}
requires-python = ">=3.10"
dependencies = []
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
]
urls.Homepage = "https://everett.readthedocs.io/"
urls.Source = "https://github.com/willkg/everett/"
urls.Issues = "https://github.com/willkg/everett/issues"
[project.optional-dependencies]
sphinx = [
"sphinx",
]
ini = [
"configobj",
]
yaml = [
"PyYAML",
]
dev = [
"build",
"cogapp",
"mypy",
"pytest",
"ruff",
"tox",
"tox-gh-actions",
"tox-uv",
"twine",
"types-PyYAML",
"Sphinx==7.2.6",
"sphinx_rtd_theme",
]
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.ruff]
target-version = "py310"
src = ["src"]
line-length = 88
[tool.ruff.lint]
# Enable pycodestyle (E), pyflakes (F), and bugbear (B) rules
select = ["E", "F", "B"]
# Ignore line length violations; ruff format does its best and we can rely on
# that
ignore = ["E501"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.mypy]
python_version = "3.10"
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = "configobj.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "docutils.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore:::babel[.*]",
"ignore:::jinja2[.*]",
"ignore:::yaml[.*]",
# Sphinx 4.2.0 uses distutils and it's deprecated in 3.10
"ignore::DeprecationWarning:sphinx",
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
py310
py311
py312
py313
py314
py310-doctest
py310-lint
py310-typecheck
uv_python_preference = only-managed
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314
[testenv]
extras = dev,ini,sphinx,yaml
commands = pytest {posargs} tests/
[testenv:py310-doctest]
basepython = python3.10
commands = pytest --doctest-modules src/
[testenv:py310-lint]
allowlist_externals = ruff
basepython = python3.10
changedir = {toxinidir}
commands =
ruff format --check tests docs examples
ruff check src tests docs examples
[testenv:py310-typecheck]
basepython = python3.10
changedir = {toxinidir}
commands =
mypy src/everett/
"""