Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
name: Modernize Python code
args: ["--py313-plus"]

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
rev: 6.0.1
hooks:
- id: isort
name: Reorder Python imports with isort

- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
name: Format Python code with black
Expand All @@ -40,14 +40,14 @@ repos:
additional_dependencies: [flake8-bugbear, Flake8-pyproject]

- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
rev: 7.2.0
hooks:
- id: flake8
name: Lint Python code with flake8
additional_dependencies: [flake8-bugbear, Flake8-pyproject]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.15.0
hooks:
- id: mypy
name: Check Python types
Expand All @@ -58,6 +58,12 @@ repos:
- types-PyYAML
- types-requests

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
name: Check spelling with codespell

- repo: meta
hooks:
- id: check-hooks-apply
Expand Down
2 changes: 1 addition & 1 deletion demo/_synctiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ def finish_retile(ctxfile: TextIO, summarydir: Path) -> None:


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

parser = ArgumentParser()
subparsers = parser.add_subparsers(metavar='subcommand', required=True)
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ line-length = 79
skip-string-normalization = true
target-version = ["py313"]

# Ref: https://github.com/codespell-project/codespell#using-a-config-file
[tool.codespell]
check-hidden = true
# ignore-regex = ""
ignore-words-list = "subtile"

# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
# requires Flake8-pyproject
[tool.flake8]
Expand Down