forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hatch.toml
124 lines (114 loc) · 2.45 KB
/
hatch.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
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
[envs.lint]
detached = true
python = "3.10"
dependencies = [
"black==21.4b2",
"isort==5.12.0",
# See https://github.com/psf/black/issues/2964 for incompatibility with click==8.1.0
"click<8.1.0",
"cython-lint",
"codespell==2.1.0",
"bandit",
"mypy==0.991",
"coverage",
"envier==0.4.0",
"types-attrs==19.1.0",
"types-docutils==0.19.1.1",
"types-protobuf==3.20.4.5",
"types-PyYAML==6.0.12.2",
"types-setuptools==65.6.0.0",
"types-six==1.16.21.4",
"ddapm-test-agent>=1.2.0",
"packaging",
"flake8>=3.8,<3.9",
"flake8-blind-except",
"flake8-builtins",
"flake8-docstrings",
"flake8-bugbear",
"flake8-logging-format",
"flake8-rst-docstrings",
"flake8-isort",
"pygments",
"riot==0.19.0",
]
[envs.lint.scripts]
style = [
"isort --check --diff {args:.}",
"black --check --diff {args:.}",
"flake8 {args}",
"cython-lint {args:.}",
]
spelling = [
"codespell --skip='ddwaf.h' {args:ddtrace/ tests/}",
]
typing = [
"mypy {args}",
]
security = [
"bandit -c pyproject.toml {args:-r ddtrace/}",
]
fmt-snapshots = [
"ddapm-test-agent-fmt {args:tests/snapshots/}",
]
riot = [
"python -m doctest {args} riotfile.py"
]
fmt = [
"black {args:.}",
"isort {args:.}",
]
[envs.docs]
template = "docs"
dev-mode = false
python = "3.10"
features = ["opentracing"]
extra-dependencies = [
"reno[sphinx]~=3.5.0",
"sphinx~=4.0",
"sphinxcontrib-spelling==7.7.0",
"PyEnchant==3.2.2",
"sphinx-copybutton==0.5.1",
# Later release of furo breaks formatting for code blocks
"furo<=2023.05.20",
]
pre-install-commands = [
"scripts/docs/install.sh",
]
[envs.docs.scripts]
build = [
"scripts/docs/build.sh",
]
[envs.docs.overrides]
# Local MacOS development requires Docker containers
platform.macos.type = { value = "container" }
[envs.slotscheck]
template = "slotscheck"
python = "3.10"
features = ["opentracing"]
extra-dependencies = [
"slotscheck==0.17.0",
]
[envs.slotscheck.scripts]
_ = [
"python -m slotscheck -v ddtrace/",
]
[envs.scripts]
detached = true
python = "3.10"
extra-dependencies = [
"packaging==23.1",
]
[envs.scripts.scripts]
test = [
"python -m doctest {args} scripts/get-target-milestone.py scripts/needs_testrun.py tests/suitespec.py",
]
[envs.meta-testing]
extra-dependencies = [
"pytest",
"pytest-cov",
"hypothesis<6.45.1"
]
[envs.meta-testing.scripts]
meta-testing = [
"pytest {args} tests/meta"
]