diff --git a/.cruft.json b/.cruft.json index c5e35a0..065cb23 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/sunpy/package-template", - "commit": "37ffb52646450caa4de8ea084725dbff65fe0995", + "commit": "29db3569a215e43fa8c5114d3dbcb98b6a9caac0", "checkout": null, "context": { "cookiecutter": { @@ -32,7 +32,7 @@ ".github/workflows/sub_package_update.yml" ], "_template": "https://github.com/sunpy/package-template", - "_commit": "37ffb52646450caa4de8ea084725dbff65fe0995" + "_commit": "29db3569a215e43fa8c5114d3dbcb98b6a9caac0" } }, "directory": null diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79dd34d..296fa95 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,32 +1,34 @@ +exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|drms/extern)$|^CITATION.rst$" + repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.9.2" + rev: "v0.9.4" hooks: - id: ruff args: ['--fix', '--unsafe-fixes'] + - repo: https://github.com/PyCQA/isort + rev: 6.0.0 + hooks: + - id: isort - id: ruff-format - repo: https://github.com/PyCQA/isort rev: 5.13.2 hooks: - id: isort - exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: check-ast - id: check-case-conflict - id: trailing-whitespace - exclude: ".*(.fits|.fts|.fit|.header|.txt)$" - id: check-yaml - id: debug-statements - id: check-added-large-files args: ["--enforce-all", "--maxkb=1054"] - id: end-of-file-fixer - exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|.json)$|^CITATION.rst$" - id: mixed-line-ending - exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*)$" - repo: https://github.com/codespell-project/codespell - rev: v2.4.0 + rev: v2.4.1 hooks: - id: codespell ci: diff --git a/pyproject.toml b/pyproject.toml index 16c75c7..1a1f82c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] requires = [ "setuptools>=62.1", - "setuptools_scm[toml]>=6.2", + "setuptools_scm[toml]>=8.0.0", "wheel", ] build-backend = "setuptools.build_meta" @@ -62,7 +62,7 @@ include = ["drms*"] exclude = ["drms._dev*"] [tool.setuptools_scm] -write_to = "drms/_version.py" +version_file = "drms/_version.py" [tool.gilesbot] [tool.gilesbot.pull_requests]