generated from NERC-CEH/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (63 loc) · 1.45 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
[build-system]
requires = ["setuptools >= 61.0", "autosemver"]
# build-backend = "setuptools.build_meta"
[project]
requires-python = ">=3.12"
dependencies = [
"autosemver",
"duckdb",
"boto3",
"mypy_boto3_s3",
"moto",
"polars",
"setuptools",
"tenacity",
]
name = "dri-utils"
dynamic = ["version"]
authors = [{ name = "John Doe", email = "johdoe@ceh.ac.uk" }]
description = "A minimal setup for a template package."
[project.optional-dependencies]
test = ["pytest", "pytest-cov", "parameterized"]
docs = ["sphinx", "sphinx-copybutton", "sphinx-rtd-theme"]
lint = ["ruff"]
datetime = ["isodate"]
all = ["dri-utils[datetime]"]
dev = ["dri-utils[all,test,docs,lint]"]
[tool.setuptools.dynamic]
version = { attr = "driutils.__version__" }
[tool.setuptools.packages.find]
where = ["src"]
include = ["driutils*"]
[tool.pytest.ini_options]
addopts = "--cov=driutils --cov-report term-missing"
markers = ["slow: Marks slow tests"]
filterwarnings = [
"ignore::DeprecationWarning:autosemver.*:",
"ignore::DeprecationWarning:pkg_resources.*:",
]
[tool.coverage.run]
omit = ["*__init__.py", "**/logger.py", "**/benchmarking*"]
[tool.ruff]
src = ["src", "tests"]
include = ["src/**.py"]
line-length = 120
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"A",
"PLC",
"PLE",
"PLW",
"I",
"N816",
"ANN001",
"ANN201",
"ANN202",
"ANN205",
"ANN206",
]
[tool.ruff.lint.flake8-type-checking]
strict = true