forked from gammapy/gammapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
54 lines (45 loc) · 1.34 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
[build-system]
requires = [
"setuptools >= 65",
"Cython",
"numpy >= 2.0.0rc1",
"setuptools_scm[toml] >= 8",
]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
filterwarnings = [
"error::astropy.utils.exceptions.AstropyDeprecationWarning",
"error::gammapy.utils.deprecation.GammapyDeprecationWarning",
"error::matplotlib.MatplotlibDeprecationWarning",
]
[tool.setuptools_scm]
version_file = "gammapy/version.py"
version_file_template = """
# Note that we need to fall back to the hard-coded version if either
# setuptools_scm can't be imported or setuptools_scm can't determine the
# version, so we catch the generic 'Exception'.
try:
from setuptools_scm import get_version
version = get_version(root='..', relative_to=__file__)
except Exception:
version = '{version}'
"""
[tool.ruff]
exclude = ["docs", "dev"]
# Like black
line-length = 88
indent-width = 4
[tool.ruff.lint]
ignore = ["E741"]
extend-ignore = ["E203","E712"]
[tool.ruff.lint.per-file-ignores]
"examples/*" = ["E402"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"