-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert setup.cfg to pyproject.toml, update tools #80
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6df8986
migrate setup.cfg to pyproject.toml
braingram 3b7ac43
run codespell
braingram 08ae1c2
run flynt
braingram 3bea888
limit ruff rules
braingram a519575
blacken-docs
braingram 9e3f290
apply some F ruff rules, one bug found in sphinx_asdf/directives.py
braingram 6c05ba0
enable bandit rules
braingram ac23ffa
enable pyupgrade rules
braingram 70302d2
enable ruf rules
braingram b4ffcb2
enable pycodestyle rules
braingram 1b82d91
keep datetime in conf because of asdf
braingram 2887916
undo possible bugfix
braingram 457f2aa
remove non-working numpy random seeding
braingram 147a148
add note about apparent unused datetime import
braingram 413eb7f
add note about directives.py change
braingram 6876782
remove use of jinja
braingram 31fbd7b
add python 3.12 testing
braingram 461f57d
claim 3.12 support
braingram File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oopsies...