-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
72 lines (61 loc) · 1.56 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
# location of package relative to the repository root (e.g. alternatively "src/my_library")
# note: the package name 'my_library' can be different from the project name on PyPI
# the project name (PyPI) is used for pip install, whereas the package name is used for imports
packages = ["my_library"]
[tool.hatch.build.targets.sdist]
exclude = ["notebooks", "tests", "images"]
[project]
# name on PyPI (e.g. pip install my_library)
name = "my_library"
version = "0.0.1"
dependencies = [
"numpy"
]
authors = [
{ name="First Last", email="[email protected]" },
]
description = "Useful library"
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Development Status :: 2 - Pre-Alpha",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
]
[project.optional-dependencies]
dev = [
"build",
"pytest",
"ruff",
"mypy",
"mkdocs",
"mkdocstrings[python]",
"mkdocs-material"
]
test= [
"pytest",
"pytest-cov",
"mypy",
]
notebooks = [
"jupyter",
]
[project.urls]
"Homepage" = "https://github.com/DHI/my_library"
"Bug Tracker" = "https://github.com/DHI/my_library/issues"
[tool.ruff]
# ignore long lines
lint.ignore = ["E501"]
[tool.mypy]
python_version = "3.9"
ignore_missing_imports = true
warn_unreachable = false
no_implicit_optional = true