Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Apr 22, 2024
1 parent 55c4272 commit d1d02e7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/sunpy/package-template",
"commit": "6d6729b22066ef890e70c37438da70cac33e03b4",
"commit": "1eff2ed0ff32c123e64b5faacf7c505362cfbb92",
"checkout": null,
"context": {
"cookiecutter": {
Expand All @@ -11,7 +11,7 @@
"author_email": "[email protected]",
"project_url": "https://docs.sunpy.org/projects/ndcube",
"license": "BSD 2-Clause",
"minimum_python_version": "3.9",
"minimum_python_version": "3.10",
"use_compiled_extensions": "n",
"enable_dynamic_dev_versions": "y",
"include_example_code": "n",
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# This should be before any formatting hooks like isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.2.2"
rev: "v0.3.7"
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -11,7 +11,7 @@ repos:
- id: isort
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|ndcube/extern)$"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-ast
- id: check-case-conflict
Expand Down
13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "ndcube"
description = "A package for multi-dimensional contiguous and non-contiguous coordinate aware arrays."
requires-python = ">=3.9"
requires-python = ">=3.10"
readme = { file = "README.rst", content-type = "text/x-rst" }
license = { file = "licenses/LICENSE.rst", content-type = "text/plain" }
authors = [
Expand All @@ -24,20 +24,21 @@ dynamic = ["version"]

[project.optional-dependencies]
tests = [
"dask",
"pytest",
"pytest-astropy",
"pytest-doctestplus",
"pytest-mpl>=0.12",
"pytest-cov",
"pytest-xdist",
"pytest-astropy",
"pytest-mpl>=0.12",
"dask",
"scipy",
"sunpy>=5.0.0"
]
docs = [
"matplotlib",
"mpl-animators>=1.0",
"sphinx",
"sphinx-automodapi",
"matplotlib",
"mpl-animators>=1.0",
"sphinx-changelog>=1.1.0",
"sphinx-gallery",
"sphinxext-opengraph",
Expand Down
12 changes: 10 additions & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ norecursedirs =
.history
ndcube/extern
doctest_plus = enabled
doctest_optionflags = NORMALIZE_WHITESPACE FLOAT_CMP ELLIPSIS
doctest_optionflags =
NORMALIZE_WHITESPACE
FLOAT_CMP
ELLIPSIS
text_file_format = rst
addopts = --doctest-rst -p no:unraisableexception -p no:threadexception -m "not mpl_image_compare" --doctest-ignore-import-errors
addopts =
--doctest-rst
-p no:unraisableexception
-p no:threadexception
-m "not mpl_image_compare"
--doctest-ignore-import-errors
remote_data_strict = True
filterwarnings =
# Turn all warnings into errors so they do not pass silently.
Expand Down

0 comments on commit d1d02e7

Please sign in to comment.