Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 11ded8f

Browse files
authoredApr 14, 2025··
Merge pull request #106 from bgilbert/pre-commit
pre-commit: add codespell; update versions
2 parents 25e6086 + 8d2cd24 commit 11ded8f

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed
 

‎.pre-commit-config.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ repos:
1515
- id: trailing-whitespace
1616

1717
- repo: https://github.com/asottile/pyupgrade
18-
rev: v3.19.0
18+
rev: v3.19.1
1919
hooks:
2020
- id: pyupgrade
2121
name: Modernize Python code
2222
args: ["--py313-plus"]
2323

2424
- repo: https://github.com/PyCQA/isort
25-
rev: 5.13.2
25+
rev: 6.0.1
2626
hooks:
2727
- id: isort
2828
name: Reorder Python imports with isort
2929

3030
- repo: https://github.com/psf/black
31-
rev: 24.10.0
31+
rev: 25.1.0
3232
hooks:
3333
- id: black
3434
name: Format Python code with black
@@ -40,14 +40,14 @@ repos:
4040
additional_dependencies: [flake8-bugbear, Flake8-pyproject]
4141

4242
- repo: https://github.com/PyCQA/flake8
43-
rev: 7.1.1
43+
rev: 7.2.0
4444
hooks:
4545
- id: flake8
4646
name: Lint Python code with flake8
4747
additional_dependencies: [flake8-bugbear, Flake8-pyproject]
4848

4949
- repo: https://github.com/pre-commit/mirrors-mypy
50-
rev: v1.13.0
50+
rev: v1.15.0
5151
hooks:
5252
- id: mypy
5353
name: Check Python types
@@ -58,6 +58,12 @@ repos:
5858
- types-PyYAML
5959
- types-requests
6060

61+
- repo: https://github.com/codespell-project/codespell
62+
rev: v2.4.1
63+
hooks:
64+
- id: codespell
65+
name: Check spelling with codespell
66+
6167
- repo: meta
6268
hooks:
6369
- id: check-hooks-apply

‎demo/_synctiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ def finish_retile(ctxfile: TextIO, summarydir: Path) -> None:
744744

745745

746746
if __name__ == '__main__':
747-
cpu_count = os.process_cpu_count() # type: ignore[attr-defined]
747+
cpu_count = os.process_cpu_count()
748748

749749
parser = ArgumentParser()
750750
subparsers = parser.add_subparsers(metavar='subcommand', required=True)

‎pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ line-length = 79
33
skip-string-normalization = true
44
target-version = ["py313"]
55

6+
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
7+
[tool.codespell]
8+
check-hidden = true
9+
# ignore-regex = ""
10+
ignore-words-list = "subtile"
11+
612
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
713
# requires Flake8-pyproject
814
[tool.flake8]

0 commit comments

Comments
 (0)
Please sign in to comment.