diff --git a/.gitignore b/.gitignore index 5219e90..fce57ae 100644 --- a/.gitignore +++ b/.gitignore @@ -143,10 +143,11 @@ media static # Specifc Template +aiapy/_version.py docs/_build -docs/generated docs/api -aiapy/_version.py +docs/generated +docs/sg_execution_times.rst htmlcov/ # VS Code diff --git a/pyproject.toml b/pyproject.toml index 65b3ee3..2dec80e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,24 +57,24 @@ cupy = [ 'cupy', ] tests = [ - "aiapy[all]", - "hissw", - "pytest", - "pytest-astropy", + "aiapy[all]", + "hissw", + "pytest", + "pytest-astropy", ] docs = [ - "aiapy[all]", - "sphinx", - "sphinx-automodapi", - "sphinx-changelog", - "sphinx-copybutton", - "sphinx-design", - "sphinx-gallery", - "sphinx-hoverxref", - "sphinxext-opengraph", - "sunpy-sphinx-theme", - # Remove next line when fixed in towncrier; see https://github.com/twisted/towncrier/issues/528 - "importlib-resources<6", + "aiapy[all]", + "sphinx", + "sphinx-automodapi", + "sphinx-changelog", + "sphinx-copybutton", + "sphinx-design", + "sphinx-gallery", + "sphinx-hoverxref", + "sphinxext-opengraph", + "sunpy-sphinx-theme", + # Remove next line when fixed in towncrier; see https://github.com/twisted/towncrier/issues/528 + "importlib-resources<6", ] dev = ["aiapy[tests,docs]"] @@ -136,41 +136,41 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" target-version = "py39" line-length = 120 exclude = [ - ".eggs", - ".git", - ".mypy_cache", - ".ruff_cache", - ".tox", - ".venv", - "__pypackages__", - "_build", - "build", - "dist", - "node_modules", - "venv", + ".eggs", + ".git", + ".mypy_cache", + ".ruff_cache", + ".tox", + ".venv", + "__pypackages__", + "_build", + "build", + "dist", + "node_modules", + "venv", ] select = [ - "E", - "F", - "W", - "UP", - "PT", - "RET", - "TID", - "PLE", - "NPY", - "RUF", - "PGH", - "PTH", - "BLE", - "FBT", - "B", - "A", - "COM", - "C4", - "T20", - "RSE", - "ERA", + "E", + "F", + "W", + "UP", + "PT", + "RET", + "TID", + "PLE", + "NPY", + "RUF", + "PGH", + "PTH", + "BLE", + "FBT", + "B", + "A", + "COM", + "C4", + "T20", + "RSE", + "ERA", ] ignore = ["E501"] extend-ignore = [ @@ -179,11 +179,11 @@ extend-ignore = [ [tool.ruff.per-file-ignores] "examples/*.py" = [ - "T201", # We need print in our examples + "T201", # We need print in our examples ] "docs/*.py" = [ - "INP001", # implicit-namespace-package. The examples are not a package. - "A001", # Variable `copyright` is shadowing a python builtin + "INP001", # implicit-namespace-package. The examples are not a package. + "A001", # Variable `copyright` is shadowing a python builtin ] "aiapy/data/sample.py" = [ "A001", # Variable `__doc__` is shadowing a python builtin @@ -197,43 +197,43 @@ convention = "numpy" ignore-words-list = "emiss" [tool.towncrier] - package = "aiapy" - filename = "CHANGELOG.rst" - directory = "changelog/" - issue_format = "`#{issue} `__" - title_format = "{version} ({project_date})" - - [[tool.towncrier.type]] - directory = "breaking" - name = "Breaking Changes" - showcontent = true - - [[tool.towncrier.type]] - directory = "deprecation" - name = "Deprecations" - showcontent = true - - [[tool.towncrier.type]] - directory = "removal" - name = "Removals" - showcontent = true - - [[tool.towncrier.type]] - directory = "feature" - name = "New Features" - showcontent = true - - [[tool.towncrier.type]] - directory = "bugfix" - name = "Bug Fixes" - showcontent = true - - [[tool.towncrier.type]] - directory = "doc" - name = "Documentation" - showcontent = true - - [[tool.towncrier.type]] - directory = "trivial" - name = "Internal Changes" - showcontent = true + package = "aiapy" + filename = "CHANGELOG.rst" + directory = "changelog/" + issue_format = "`#{issue} `__" + title_format = "{version} ({project_date})" + + [[tool.towncrier.type]] + directory = "breaking" + name = "Breaking Changes" + showcontent = true + + [[tool.towncrier.type]] + directory = "deprecation" + name = "Deprecations" + showcontent = true + + [[tool.towncrier.type]] + directory = "removal" + name = "Removals" + showcontent = true + + [[tool.towncrier.type]] + directory = "feature" + name = "New Features" + showcontent = true + + [[tool.towncrier.type]] + directory = "bugfix" + name = "Bug Fixes" + showcontent = true + + [[tool.towncrier.type]] + directory = "doc" + name = "Documentation" + showcontent = true + + [[tool.towncrier.type]] + directory = "trivial" + name = "Internal Changes" + showcontent = true