-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
87 lines (78 loc) · 2.27 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "silnice-v-cislech-data"
description = 'Workflow to export time series from Czech Police crash data.'
version = "0.0.1"
readme = "README.md"
requires-python = ">=3.8"
license = "Apache-2.0"
keywords = ["roads", "streets", "crash", "data"]
authors = [
{ name = "eduardsubert", email = "eduardsubert@gmail.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"orjson>=3.10",
"pandas>=2.2.3",
"pyarrow>=17.0.0",
"lxml>=5.3.0",
"rarfile>=4.2",
"snakemake>=8.25",
]
[project.urls]
Documentation = "https://github.com/Silnice-v-cislech/data/blob/main/README.md"
Issues = "https://github.com/Silnice-v-cislech/data/issues"
Source = "https://github.com/Silnice-v-cislech/data"
[tool.hatch.build.targets.wheel]
packages = ["workflow"]
[tool.hatch.envs.ipython]
extra-dependencies = [
"ipython",
"ipdb",
]
[tool.hatch.envs.ipython.scripts]
run = "ipython"
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disable_error_code = [
"name-defined", # Snakemake is not defined
"import-not-found" # imports in workflow scripts are not followed by mypy
]
[tool.black]
line-length = 88
target-version = ['py312']
[tool.isort]
profile = "black"
[tool.hatch.envs.conventions]
extra-dependencies = [
"mypy>=1.13.0",
"black>=24.10.0",
"isort>=5.13.2",
]
[tool.hatch.envs.conventions.scripts]
types = "mypy --install-types --non-interactive {args:workflow/scripts}"
format = "black workflow/scripts tests"
imports = "isort workflow/scripts tests"
check = "black --check workflow/scripts tests && isort --check workflow/scripts tests && mypy --install-types --non-interactive {args:workflow/scripts}"
[tool.hatch.envs.tests]
extra-dependencies = [
"pytest>=8.3.3",
]
[tool.hatch.envs.tests.scripts]
all = "pytest tests/"
integration = "pytest tests/integration/"
unit = "pytest tests/unit/"
[[tool.hatch.envs.test.matrix]]
python = ["3.11", "3.12", "3.13"]