forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hatch.toml
85 lines (81 loc) · 1.74 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
[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-logging-format",
"flake8-rst-docstrings",
"flake8-isort",
"pygments",
"riot==0.17.4",
]
[envs.lint.scripts]
style = [
"isort -q {args:.}",
"black -q {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"
]
[envs.docs]
type = "container"
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",
"furo",
]
pre-install-commands = [
"scripts/docs/install.sh",
]
[envs.docs.scripts]
build = [
"scripts/docs/build.sh",
]
[envs.docs.overrides]
# CircleCI executor is an image already set up for docs
# We skip the pre-install as well
env.CIRCLECI.type = [
{ value = "virtual", if = ["true"] },
]