-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
99 lines (85 loc) · 2.15 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "envier"
dynamic = ["version"]
description = "Python application configuration via the environment"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.7"
authors = [
{ name = "Datadog", email = "[email protected]" },
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
]
[project.optional-dependencies]
mypy = [
"mypy",
]
[project.urls]
Homepage = "https://github.com/DataDog/envier"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "envier/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"envier/",
]
[tool.mypy]
files = "envier/*.py"
show_error_codes = true
plugins = "envier.mypy"
ignore_missing_imports = true
[tool.black]
exclude = '''
envier/_version.py
'''
[tool.isort]
force_single_line = true
lines_after_imports = 2
force_sort_within_sections = true
known_first_party = "envier"
default_section = "THIRDPARTY"
skip = [".riot", ".eggs", "build"]
skip_glob = [".venv*"]
line_length = 120
[tool.hatch.envs.tests]
template = "tests"
dependencies = [
"pytest",
"mypy==0.961",
"sphinx==5.1.1",
"alabaster==0.7.12",
]
[tool.hatch.envs.tests.scripts]
tests = "pytest -vv {args}"
[[tool.hatch.envs.tests.matrix]]
python = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.checks]
python = "3.10"
dependencies = [
"black",
"mypy~=0.770",
"flake8~=5.0.4",
"flake8-annotations~=2.9.1",
"flake8-black",
"flake8-bugbear~=22.9.23",
"flake8-docstrings~=1.6.0",
"flake8-import-order~=0.18.1",
"flake8-isort~=5.0.0",
]
[tool.hatch.envs.checks.scripts]
formatting = "black --check {args} ."
typing = "mypy --show-error-codes --install-types --non-interactive {args}"
linting = "flake8 {args} envier/"