-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
82 lines (75 loc) · 1.93 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
[project]
name = "eq-utils"
description = 'Miscellaneous utility functions.'
license = { file="LICENSE" }
readme = "README.md"
keywords = ["python"]
dynamic = ["version"]
requires-python = ">=3.10"
classifiers = [
"License :: OSI Approved :: MIT License"
]
dependencies = []
[project.optional-dependencies]
dev = [
"black",
"hatch-vcs",
"hatchling",
"isort",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocs-material-extensions",
"mkdocstrings",
"numpydoc",
]
test = [
"coverage",
"hypothesis",
"pytest",
"pytest-cov",
"pytest-doctestplus",
]
[project.urls]
"Home Page" = "https://github.com/energy-quants/eq-utils"
"Source Code" = "https://github.com/energy-quants/eq-utils"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch]
# https://github.com/ofek/hatch-vcs
version.source = "vcs"
version.raw-options = { version_scheme = "post-release" }
# https://hatch.pypa.io/latest/config/build/
build.include = ["/src"]
build.hooks.vcs.version-file = "src/eq/utils/_version.py"
build.targets.wheel.strict-naming = false
build.targets.wheel.packages = ["/src/eq"]
[tool.black]
line_length = 100
[tool.isort]
# https://pycqa.github.io/isort/docs/configuration/options.html
profile = "black"
line_length = 100
force_single_line = true
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"EQ",
"FIRSTPARTY",
"LOCALFOLDER",
]
default_section = "THIRDPARTY"
known_eq = "eq"
known_first_party = "eq.utils"
[tool.pytest.ini_options]
# https://docs.pytest.org/en/7.1.x/reference/reference.html#ini-options-ref
testpaths = ["tests"]
addopts = "-lv --color=yes --code-highlight=yes --import-mode=importlib --junit-xml=test-results.xml --cov=eq.utils --cov-report=html --cov-report xml:coverage-results.xml"
junit_family = "xunit2"
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"