Skip to content

Commit

Permalink
Update pre-commit and codespell (#95)
Browse files Browse the repository at this point in the history
* Make pre-commit codespell recognize pyproject.toml

* Update words for codespell to ignore

* Make a pre-commit hook ignore .fits files
  • Loading branch information
namurphy authored Dec 13, 2022
1 parent 0fcd0fd commit d3e994c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ repos:
- id: check-ast
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: .*\.fits
- id: check-merge-conflict
exclude: .*\.rst
- id: requirements-txt-fixer
Expand Down Expand Up @@ -74,7 +75,8 @@ repos:
rev: v2.2.2
hooks:
- id: codespell
args: [--config pyproject.toml]
additional_dependencies:
- tomli

- repo: https://github.com/asottile/pyupgrade
rev: v2.38.2
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ build-backend = "setuptools.build_meta"
[tool.codespell]
skip = "*.genx,*.geny,*.png,*egg*,.git,.hypothesis,.nox,.tox,.idea,__pycache__,_build"
ignore-words-list = """
circularly"""
circularly,
te
"""

[tool.gilesbot]

Expand Down

0 comments on commit d3e994c

Please sign in to comment.