Skip to content

Commit

Permalink
Merge pull request #121 from punch-mission/develop
Browse files Browse the repository at this point in the history
Adds pre-commit, updates requirements
  • Loading branch information
jmbhughes authored Dec 13, 2023
2 parents 0eef518 + a3e58f4 commit 1938e7f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
exclude: "\\.asdf$"
repos:
# This should be before any formatting hooks like isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.7"
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/PyCQA/isort
rev: 5.13.0
hooks:
- id: isort
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|sunpy/extern)$"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.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=10000']
- 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.*)$"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dill~=0.3
h5py~=3.10
lmfit~=1.2
cython~=3.0
astropy~=5.3
astropy~=6.0
scipy~=1.11
scikit-image~=0.22
sep~=1.2
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dill~=0.3
h5py~=3.10
lmfit~=1.2
cython~=3.0
astropy~=5.3
astropy~=6.0
scipy~=1.11
scikit-image~=0.22
sep~=1.2
Expand Down

0 comments on commit 1938e7f

Please sign in to comment.