Skip to content

Commit 2a1118e

Browse files
yarikopticLee-W
authored andcommitted
style: move codespell configuration to pyproject.toml
So people could just run "codespell" without pre-commit and have centralized configuration for tools (the others are already in pyproject.toml) Signed-off-by: Yaroslav Halchenko <[email protected]>
1 parent 642fe8c commit 2a1118e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ repos:
4141
hooks:
4242
- id: codespell
4343
name: Run codespell to check for common misspellings in files
44+
# config section is within pyproject.toml
4445
language: python
4546
types: [ text ]
46-
args: [ "--write-changes", "--ignore-words-list", "asend" ]
47-
exclude: "poetry.lock"
47+
args: [ "--write-changes" ]
4848

4949
- repo: https://github.com/commitizen-tools/commitizen
5050
rev: v3.26.2 # automatically updated by Commitizen

pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,9 @@ warn_unused_configs = true
174174
[[tool.mypy.overrides]]
175175
module = "py.*" # Legacy pytest dependencies
176176
ignore_missing_imports = true
177+
178+
[tool.codespell]
179+
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
180+
skip = '.git*,*.svg,*.lock'
181+
check-hidden = true
182+
ignore-words-list = 'asend'

0 commit comments

Comments
 (0)