Skip to content

Commit

Permalink
add pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
richarms committed Apr 5, 2022
1 parent cd42bfa commit 10279f2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ htmlcov
.coverage
__pycache__
.mypy_cache
*.pyc
*.pyo
*.pyd
*.so
doc/_build
*.egg-info
*.ms
*.fits

**/*.fits
**/*.ms
**/*.pyc
11 changes: 11 additions & 0 deletions pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ astropy
dask
numba
numpy<1.21,>=1.17
pre-commit==2.3.0
pytest
scipy
typing-extensions

0 comments on commit 10279f2

Please sign in to comment.