-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (85 loc) · 2.68 KB
/
pyproject.toml
File metadata and controls
101 lines (85 loc) · 2.68 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[project]
name = "cookiecutter_pytask_project"
version = "1.7.0"
description = "A minimal cookiecutter template for a project with pytask."
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Build Tools",
]
requires-python = ">=3.10"
dependencies = ["cookiecutter"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
only-include = ["cookiecutter.json", "hooks", "{{cookiecutter.project_slug}}"]
[tool.hatch.build.targets.sdist]
only-include = ["cookiecutter.json", "hooks", "{{cookiecutter.project_slug}}"]
[[project.authors]]
name = "Tobias Raabe"
email = "raabe@posteo.de"
[dependency-groups]
docs = [
"furo",
"ipython",
"myst-parser",
"nbsphinx",
"sphinx",
"sphinx-click",
"sphinx-copybutton",
"sphinx-design>=0.6.1",
"sphinx-toolbox",
"sphinxext-opengraph",
]
test = ["pytest", "pytest-cookies", "pytest-cov"]
typing = ["ty>=0.0.29"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
text = "MIT"
[project.urls]
Homepage = "https://cookiecutter-pytask-project.readthedocs.io/en/latest"
Changelog = "https://cookiecutter-pytask-project.readthedocs.io/en/latest/changes.html"
Documentation = "https://cookiecutter-pytask-project.readthedocs.io/en/latest"
Github = "https://github.com/pytask-dev/cookiecutter-pytask-project"
Tracker = "https://github.com/pytask-dev/cookiecutter-pytask-project/issues"
[tool.ty.rules]
unused-ignore-comment = "error"
[tool.ty.terminal]
error-on-warning = true
[tool.ruff]
fix = true
unsafe-fixes = true
[tool.ruff.lint]
extend-ignore = [
"COM812", # Comply with ruff-format.
"ISC001", # Comply with ruff-format.
]
select = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"hooks/*" = ["INP001"]
"tests/*" = ["D", "ANN", "S101", "S603"]
"hooks/post_gen_project.py" = ["PLR0133", "S603"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
addopts = ["--doctest-modules"]
testpaths = ["tests"]
filterwarnings = [
"ignore: the imp module is deprecated in favour of importlib",
"ignore: Using or importing the ABCs from 'collections' instead of from",
"ignore: The (parser|symbol) module is deprecated and will be removed in future",
]
norecursedirs = [".idea"]