forked from mckinsey/vizro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhatch.toml
81 lines (71 loc) · 2.56 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
[envs.all]
[[envs.all.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
[envs.changelog]
dependencies = ["scriv"]
detached = true
scripts = {add = "scriv create --add", collect = ["scriv collect --add", "- hatch run lint:lint --files=CHANGELOG.md"]}
[envs.default]
dependencies = [
"devtools[pygments]",
"coverage[toml]>=6.5",
"pytest",
"pytest-rerunfailures",
"toml",
"nbformat>=4.2.0",
"pyhamcrest",
"jupyter",
"langchain_community",
"dash[testing]",
"chromedriver-autoinstaller>=0.6.4",
"urllib3<2.0.0" # helps to resolve bug with urllib3 timeout from vizro-ai integration tests: https://bugs.launchpad.net/python-jenkins/+bug/2018567
]
[envs.default.env-vars]
VIZRO_AI_LOG_LEVEL = "DEBUG"
[envs.default.scripts]
example = "cd examples; python example.py"
example-create-dashboard = "cd examples; python example_dashboard.py"
lint = "hatch run lint:lint {args:--all-files}"
prep-release = [
"hatch version release",
"hatch run changelog:collect",
"hatch run changelog:add",
'echo "Now raise a PR to merge into main with title: [Release] Release of vizro-ai $(hatch version)"'
]
pypath = "hatch run python -c 'import sys; print(sys.executable)'"
secrets = "pre-commit run gitleaks --all-files"
test = "pytest tests {args}"
test-integration = "pytest -vs --reruns 1 tests/integration --headless {args}"
test-unit = "pytest tests/unit {args}"
test-unit-coverage = [
"coverage run -m pytest tests/unit {args}",
"- coverage combine",
"coverage report"
]
update-snyk-requirements = "python ../tools/generate_snyk_requirements.py {args}"
[envs.docs]
dependencies = [
"mkdocs>=1.6",
"mkdocs-material",
"mkdocs-git-revision-date-localized-plugin",
"mkdocstrings[python]",
"linkchecker"
]
detached = true
[envs.docs.scripts]
build = "mkdocs build --strict"
# Disable warnings on the linkcheck so that HTTP redirects are accepted. We could ignore only that warning and specify
# more advanced settings using a linkcheckerrc config file. openai.com doesn't seem to work well with linkchecking,
# throwing 403 errors, but these are not real errors.
link-check = "linkchecker site --check-extern --no-warnings --ignore=404.html --ignore-url=127.0.0.1 --ignore-url=https://vizro.readthedocs.io/ --ignore-url=https://platform.openai.com/docs/models --ignore-url=openai.com --ignore-url=https://openai.com/"
serve = "mkdocs serve --open"
[envs.lint]
dependencies = [
"pre-commit"
]
detached = true
scripts = {lint = "SKIP=gitleaks pre-commit run {args:--all-files}"}
[envs.lower-bounds]
extra-dependencies = ["pydantic==1.10.13"]
[version]
path = "src/vizro_ai/__init__.py"