Skip to content

Commit 7e7e983

Browse files
committed
Update pre-commit.
1 parent 3783c8a commit 7e7e983

2 files changed

Lines changed: 25 additions & 15 deletions

File tree

src/py/.pre-commit-config.yaml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ default_install_hook_types: [pre-commit, commit-msg]
1414
default_stages: [pre-commit]
1515
repos:
1616
- repo: https://github.com/pre-commit/pre-commit-hooks
17-
rev: v3.2.0
17+
rev: v6.0.0
1818
hooks:
1919
- id: trailing-whitespace
2020
- id: end-of-file-fixer
@@ -25,12 +25,12 @@ repos:
2525
- id: check-toml
2626
- id: debug-statements
2727
- repo: https://github.com/asottile/add-trailing-comma
28-
rev: v3.1.0
28+
rev: v3.2.0
2929
hooks:
3030
- id: add-trailing-comma
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
3232
# Ruff version.
33-
rev: v0.12.10
33+
rev: v0.13.3
3434
hooks:
3535
# Run the linter.
3636
- id: ruff
@@ -40,7 +40,7 @@ repos:
4040
types_or: [python, pyi]
4141
# options: ignore one line things [E701]
4242
- repo: https://github.com/adrienverge/yamllint
43-
rev: v1.35.1
43+
rev: v1.37.1
4444
hooks:
4545
- id: yamllint
4646
name: yamllint
@@ -55,7 +55,7 @@ repos:
5555
}\
5656
}"]
5757
- repo: https://github.com/rhysd/actionlint
58-
rev: v1.7.4
58+
rev: v1.7.7
5959
hooks:
6060
- id: actionlint
6161
name: Lint GitHub Actions workflow files
@@ -76,18 +76,9 @@ repos:
7676
args: [--staged, -c, "general.ignore=B6,T3", --msg-filename]
7777
stages: [commit-msg]
7878
- repo: https://github.com/crate-ci/typos
79-
rev: v1.28.2
79+
rev: v1
8080
hooks:
8181
- id: typos
82-
- repo: https://github.com/markdownlint/markdownlint
83-
rev: v0.13.0
84-
hooks:
85-
- id: markdownlint
86-
name: Markdownlint
87-
description: Run markdownlint on your Markdown files
88-
entry: mdl --rules ~MD026 --style .markdown.rb
89-
language: ruby
90-
files: \.(md|mdown|markdown)$
9182
- repo: https://github.com/Yelp/detect-secrets
9283
rev: v1.5.0
9384
hooks:
@@ -96,3 +87,16 @@ repos:
9687
language: python
9788
entry: detect-secrets-hook
9889
args: ['']
90+
- repo: https://github.com/rvben/rumdl-pre-commit
91+
rev: v0.0.153 # Use the latest release tag
92+
hooks:
93+
- id: rumdl
94+
# To only check (default):
95+
# args: []
96+
# To automatically fix issues:
97+
# args: [--fix]
98+
- repo: https://github.com/RobertCraigie/pyright-python
99+
rev: v1.1.406 # pin a tag; latest as of 2025-10-01
100+
hooks:
101+
- id: pyright
102+
args: ["--project=src/py"]

src/py/pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ dev = [
5454
"pandas>=2.0.3",
5555
"typing-extensions>=4.12.2",
5656
"hypothesis>=6.113.0",
57+
"pyright>=1.1.406",
5758
]
5859

5960
pickles = [
@@ -115,3 +116,8 @@ help = "Run test by test, slowly, quitting after first error"
115116
[tool.poe.tasks.filter-test]
116117
cmd = "pytest --log-level=1 -W error -vvvx -rA --capture=no --show-capture=no"
117118
help = "Run any/all tests one by one with basic settings: can include filename and -k filters"
119+
120+
[tool.pyright]
121+
venvPath = "."
122+
venv = ".venv"
123+
exclude= ["src/py/integration_tests/dates/*"]

0 commit comments

Comments
 (0)