Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 <debian@onerussian.com>
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‎

Lines changed: 2 additions & 2 deletions
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‎

Lines changed: 6 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /