-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from braingram/pyproject_toml
Convert setup.cfg to pyproject.toml, update tools
- Loading branch information
Showing
14 changed files
with
151 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,48 @@ | ||
[project] | ||
name = "sphinx-asdf" | ||
description = "Sphinx plugin for generating documentation from ASDF schemas" | ||
readme = 'README.rst' | ||
license = { file = 'LICENSE' } | ||
authors = [{ name = 'The ASDF Developers', email = '[email protected]' }] | ||
requires-python = '>=3.9' | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
"License :: OSI Approved :: BSD License", | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
] | ||
dynamic = [ | ||
'version', | ||
] | ||
dependencies = [ | ||
"asdf", | ||
"astropy>=5.0.4", | ||
"docutils", | ||
"mistune>=3", | ||
"packaging", | ||
"sphinx", | ||
"sphinx-astropy", | ||
"sphinx_bootstrap_theme", | ||
"sphinx-rtd-theme", | ||
"toml", | ||
|
||
] | ||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest", | ||
] | ||
[project.urls] | ||
'documentation' = 'https://sphinx-asdf.readthedocs.io/en/stable' | ||
'repository' = 'https://github.com/asdf-format/sphinx-asdf' | ||
'tracker' = 'https://github.com/asdf-format/sphinx-asdf/issues' | ||
|
||
[tool.setuptools.packages.find] | ||
include = ['sphinx_asdf*'] | ||
|
||
[build-system] | ||
requires = ["setuptools>=42", "setuptools_scm[toml]>=3.4", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
@@ -20,5 +65,26 @@ force-exclude = ''' | |
|
||
[tool.isort] | ||
profile = "black" | ||
filter_files = true | ||
line_length = 120 | ||
filter-files = true | ||
line-length = 120 | ||
|
||
[tool.ruff] | ||
target-version = "py38" | ||
line-length = 120 | ||
select = [ | ||
# minimal set to match pre-ruff behavior | ||
"E", # pycodestyle | ||
"F", # pyflakes, autoflake | ||
"I", # isort | ||
"S", # bandit | ||
"UP", # pyupgrade | ||
"RUF", # ruff specific, includes yesqa | ||
] | ||
extend-ignore = [ | ||
"F403", "F405", # uses if import * should be removed | ||
"S101", # asserts used in tests | ||
"RUF012", # we don't use typing | ||
] | ||
|
||
[tool.codespell] | ||
skip="*.pdf,*.asdf,.tox,build,./tags,.git,docs/_build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import logging | ||
import os | ||
import posixpath | ||
import warnings | ||
|
||
import docutils | ||
import packaging.version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
rst converter that used to be in this file. | ||
""" | ||
|
||
import re | ||
import textwrap | ||
|
||
import mistune | ||
|
Oops, something went wrong.