Debian Codegraph @

pyproject.toml

raw
1 [build-system]
2 requires = [
3 "setuptools>=80",
4 "setuptools_scm[simple]>=8"
5 ]
6 build-backend = 'setuptools.build_meta'
7
8 [project]
9 name = "astropy-sphinx-theme"
10 dynamic = ["version"]
11 description = "The sphinx theme for Astropy and affiliated packages."
12 readme = "README.rst"
13 license = "BSD-3-Clause"
14 license-files = ["LICENSE.rst"]
15 authors = [{name = "The Astropy Developers", email = "[email protected]"}]
16 classifiers = [
17 "Intended Audience :: Developers",
18 "Operating System :: OS Independent",
19 "Programming Language :: Python",
20 ]
21 urls = {Homepage = "https://github.com/astropy/astropy-sphinx-theme"}
22 requires-python = ">=3.10"
23 dependencies = [
24 "sphinx>6",
25 "sunpy-sphinx-theme>=2.1.1",
26 ]
27
28 [dependency-groups]
29 dev = [ { include-group = "test" } ]
30 test = [
31 "pytest>=9",
32 "packaging",
33 ]
34 docs = [
35 "sphinx",
36 ]
37
38 # Keeping this around for backwards compat
39 [project.optional-dependencies]
40 test = [
41 "packaging",
42 "pytest>=9",
43 ]
44 docs = [
45 "sphinx",
46 ]
47
48 [project.entry-points."sphinx.html_themes"]
49 "bootstrap-astropy" = "astropy_sphinx_theme.bootstrap_astropy"
50 "astropy-unified" = "astropy_sphinx_theme.astropy_unified"
51
52 [tool.setuptools.packages.find]
53 include = ["astropy_sphinx_theme*"]
54
55 [tool.pytest]
56 minversion = "9.0"
57 testpaths = ["astropy_sphinx_theme"]
58 xfail_strict = true
59 log_level = "INFO"
60 addopts = [
61 "-ra",
62 "--strict-config",
63 "--strict-markers",
64 ]
65 filterwarnings = ["error"]
66
67 [tool.ruff]
68 line-length = 100
69
70 [tool.ruff.lint]
71 select = [
72 "E",
73 "F",
74 "I",
75 "B",
76 "UP",
77 ]
78
79 [tool.repo-review]
80 ignore = [
81 "MY", # No typing
82 "PC140", # No typing
83 "PY007", # No tox
84 "PY005", # I will put my test folder where I like, thank you.
85 "PC111", # I shall have not-black docs
86 # TODO: Add docs
87 "RTD",
88 ]