Skip to content

Commit

Permalink
Merge pull request #165 from WilliamJamieson/feature/update_style_checks
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson authored Feb 15, 2023
2 parents 1b40863 + 83b05a0 commit 23131e6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 60 deletions.
19 changes: 11 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ repos:
additional_dependencies:
- tomli

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
- repo: https://github.com/ikamensh/flynt/
rev: '0.77'
hooks:
- id: pyupgrade
args: ["--py38-plus"]
- id: flynt

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.246"
Expand All @@ -66,8 +65,12 @@ repos:
hooks:
- id: blacken-docs

- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.6.0"
hooks:
- id: bandit
args: ["-c", "bandit.yaml"]
- id: pyproject-fmt

- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.12.1"
hooks:
- id: validate-pyproject
19 changes: 0 additions & 19 deletions bandit.yaml

This file was deleted.

68 changes: 35 additions & 33 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = 'asdf_astropy'
description = 'ASDF serialization support for astropy'
name = "asdf_astropy"
description = "ASDF serialization support for astropy"
readme = 'README.rst'
requires-python = '>=3.8'
license = { file = 'LICENSE.rst' }
authors = [{ name = 'The Astropy Developers', email = 'astropy.team@gmail.com' }]
requires-python = '>=3.8'
classifiers = [
'Programming Language :: Python',
'Programming Language :: Python :: 3',
Expand All @@ -13,51 +13,53 @@ classifiers = [
'Programming Language :: Python :: 3.10',
'Development Status :: 5 - Production/Stable',
]
dynamic = [
'version',
]
dependencies = [
'astropy >=5.0.4',
'asdf >=2.13.0',
'numpy >=1.20',
'asdf-coordinates-schemas >=0.1.0',
'asdf-transform-schemas >=0.2.2',
'importlib_resources >=3; python_version <"3.9"',
'packaging >=19.0',
"asdf>=2.13",
"asdf-coordinates-schemas>=0.1",
"asdf-transform-schemas>=0.2.2",
"astropy>=5.0.4",
'importlib_resources>=3; python_version < "3.9"',
"numpy>=1.20",
"packaging>=19",
]
dynamic = ['version']

[project.optional-dependencies]
test = [
'pytest-astropy',
'coverage',
'scipy',
]
docs = [
'tomli',
'sphinx',
'sphinx-astropy',
'sphinx-automodapi',
'sphinx-asdf',
'graphviz',
'matplotlib',
'docutils',
"docutils",
"graphviz",
"matplotlib",
"sphinx",
"sphinx-asdf",
"sphinx-astropy",
"sphinx-automodapi",
"tomli",
]
test = [
"coverage",
"pytest-astropy",
"scipy",
]

[project.urls]
'tracker' = 'https://github.com/astropy/asdf-astropy/issues'
'documentation' = 'https://asdf-astropy.readthedocs.io/en/latest/'
'repository' = 'https://github.com/astropy/asdf-astropy'
'tracker' = 'https://github.com/astropy/asdf-astropy/issues'

[project.entry-points]
'asdf.extensions' = { asdf-astropy = 'asdf_astropy.integration:get_extensions' }
'asdf.resource_mappings' = { asdf-astropy = 'asdf_astropy.integration:get_resource_mappings' }
'asdf.extensions' = {asdf-astropy = 'asdf_astropy.integration:get_extensions'}
'asdf.resource_mappings' = {asdf-astropy = 'asdf_astropy.integration:get_resource_mappings'}


[build-system]
build-backend = 'setuptools.build_meta'
requires = [
"setuptools>=60",
"setuptools_scm[toml]>=3.4",
"wheel",
"oldest-supported-numpy",
"oldest-supported-numpy",
"setuptools>=60",
"setuptools_scm[toml]>=3.4",
"wheel",
]
build-backend = 'setuptools.build_meta'

[tool.setuptools_scm]
write_to = "asdf_astropy/_version.py"
Expand Down

0 comments on commit 23131e6

Please sign in to comment.