Skip to content

Commit

Permalink
Updates from the package template (#138)
Browse files Browse the repository at this point in the history
Co-authored-by: Cadair <[email protected]>
Co-authored-by: Nabil Freij <[email protected]>
  • Loading branch information
3 people authored Feb 3, 2025
1 parent fb003ac commit 23e4f71
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 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": "37ffb52646450caa4de8ea084725dbff65fe0995",
"commit": "29db3569a215e43fa8c5114d3dbcb98b6a9caac0",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down Expand Up @@ -32,7 +32,7 @@
".github/workflows/sub_package_update.yml"
],
"_template": "https://github.com/sunpy/package-template",
"_commit": "37ffb52646450caa4de8ea084725dbff65fe0995"
"_commit": "29db3569a215e43fa8c5114d3dbcb98b6a9caac0"
}
},
"directory": null
Expand Down
14 changes: 8 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 23e4f71

Please sign in to comment.