-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
117 lines (93 loc) · 2.43 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "anim"
dynamic = ["version"]
description = "Package to create animation of data"
readme = "README.rst"
authors = [
{name = "LudwigVonKoopa", email = "[email protected]"}
]
maintainers = [
{name = "LudwigVonKoopa", email = "[email protected]"}
]
classifiers = [
"Programming Language :: Python :: 3",
]
license = {text = "BSD license"}
dependencies = ["setuptools-scm", "ipykernel"]
[project.optional-dependencies]
test = ["pytest", "pytest-cov"]
dev = ["black", "flake8", "isort", "pre-commit"]
doc = ["sphinx", "pydata-sphinx-theme"]
[project.urls]
bugs = "https://github.com/ludwigVonKoopa/anim/issues"
changelog = "https://github.com/ludwigVonKoopa/anim/blob/master/changelog.md"
homepage = "https://github.com/ludwigVonKoopa/anim"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
namespaces = true
where = ["src"]
[tool.setuptools.package-data]
"anim.share" = ["*"]
[project.scripts]
anim = "anim.cli:app"
# Mypy
# ----
[tool.mypy]
files = "."
# Use strict defaults
strict = true
warn_unreachable = true
warn_no_return = true
# ruff
# ----
[tool.ruff]
line-length = 120
target-version = "py39"
exclude = [
".eggs",
".git",
".pytest_cache",
"build",
]
[tool.ruff.lint]
extend-select = ["I"]
ignore = [
"E402",
"E501",
"E731",
]
select = [
"F", # Pyflakes
"E", # Pycodestyle
"W",
"TID", # flake8-tidy-imports (absolute imports)
"I", # isort
"UP", # Pyupgrade
]
[tool.flake8]
max-line-length = 120
[tool.isort]
profile = "black"
line_length = 120
combine_as_imports = true
[[tool.mypy.overrides]]
# Don't require test functions to include types
module = "tests.*"
disable_error_code = "attr-defined"
[tool.coverage.report]
exclude_lines = ["pragma: no coverage"]
[tool.pytest.ini_options]
addopts = "-rs --cov-config=pyproject.toml --cov=anim --cov-report html --cov-report term --cov-report xml --durations=5 --mpl --mpl-baseline-path=tests/baseline --mpl-generate-summary=html --mpl-results-path=mpl_comparaison"
mpl-use-full-test-name = false
testpaths = ["tests"]
filterwarnings = ["ignore:tostring.*is deprecated"]
markers = [
# "outputs: marks tests that check the netcdfs outputs (deselect with '-m \"not outputs\"')",
]
[tool.setuptools_scm]
fallback_version = "0.0.0.dev"
write_to = "src/anim/_version.py"