From d3e994c992b8ff44fd5c4225c43c12dd99c7f3e1 Mon Sep 17 00:00:00 2001 From: Nick Murphy Date: Mon, 12 Dec 2022 19:44:23 -0500 Subject: [PATCH] Update pre-commit and codespell (#95) * Make pre-commit codespell recognize pyproject.toml * Update words for codespell to ignore * Make a pre-commit hook ignore .fits files --- .pre-commit-config.yaml | 4 +++- pyproject.toml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9fd8d5061..f3e1d44cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index eae7946f0..de7f2f9af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]