Skip to content

Commit b5f5714

Browse files
authored
Merge pull request #31 from geopozo/andrew/pre-commit-updates
Andrew/pre commit updates
2 parents 7b15284 + 65d1688 commit b5f5714

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ __pycache__
55
*.egg-info/
66

77
# ipynb
8-
.ipynb_checkpoints/
8+
.ipynb_checkpoints/

.pre-commit-config.yaml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
exclude: 'site/.*'
66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v3.2.0
8+
rev: v6.0.0
99
hooks:
1010
- id: trailing-whitespace
1111
- id: end-of-file-fixer
@@ -16,12 +16,12 @@ repos:
1616
- id: check-toml
1717
- id: debug-statements
1818
- repo: https://github.com/asottile/add-trailing-comma
19-
rev: v3.1.0
19+
rev: v3.2.0
2020
hooks:
2121
- id: add-trailing-comma
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
2323
# Ruff version.
24-
rev: v0.8.2
24+
rev: v0.13.2
2525
hooks:
2626
# Run the linter.
2727
- id: ruff
@@ -31,22 +31,20 @@ repos:
3131
types_or: [python, pyi]
3232
# options: ignore one line things [E701]
3333
- repo: https://github.com/adrienverge/yamllint
34-
rev: v1.35.1
34+
rev: v1.37.1
3535
hooks:
3636
- id: yamllint
3737
name: yamllint
3838
description: This hook runs yamllint.
3939
entry: yamllint
4040
language: python
4141
types: [file, yaml]
42-
args: ['-d', "{\
43-
extends: default,\
44-
rules: {\
45-
colons: { max-spaces-after: -1 }\
46-
}\
47-
}"]
42+
args: [
43+
'-d',
44+
"{ extends: default, rules: { colons: { max-spaces-after: -1 } } }",
45+
]
4846
- repo: https://github.com/rhysd/actionlint
49-
rev: v1.7.4
47+
rev: v1.7.7
5048
hooks:
5149
- id: actionlint
5250
name: Lint GitHub Actions workflow files
@@ -67,18 +65,9 @@ repos:
6765
args: [--staged, --msg-filename]
6866
stages: [commit-msg]
6967
- repo: https://github.com/crate-ci/typos
70-
rev: v1.28.2
68+
rev: v1
7169
hooks:
7270
- id: typos
73-
- repo: https://github.com/markdownlint/markdownlint
74-
rev: v0.13.0
75-
hooks:
76-
- id: markdownlint
77-
name: Markdownlint
78-
description: Run markdownlint on your Markdown files
79-
entry: mdl --style .markdown.rb
80-
language: ruby
81-
files: \.(md|mdown|markdown)$
8271
- repo: https://github.com/Yelp/detect-secrets
8372
rev: v1.5.0
8473
hooks:
@@ -87,3 +76,15 @@ repos:
8776
language: python
8877
entry: detect-secrets-hook
8978
args: ['']
79+
- repo: https://github.com/rvben/rumdl-pre-commit
80+
rev: v0.0.151 # Use the latest release tag
81+
hooks:
82+
- id: rumdl
83+
# To only check (default):
84+
# args: []
85+
# To automatically fix issues:
86+
# args: [--fix]
87+
- repo: https://github.com/RobertCraigie/pyright-python
88+
rev: v1.1.405 # pin a tag; latest as of 2025-10-01
89+
hooks:
90+
- id: pyright

TECH_NOTE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ In simple usage, usually only the root logger has a handler.
1414

1515
* Changing the format mid-program means finding all the (relevant?) handlers
1616
in the tree. `pytest` for example attaches other handlers so it can capture
17-
logging. Our `better_config()` will set our format on the root logger's handlers.
17+
logging. Our `better_config()` will set our format on the root logger's
18+
handlers.
1819

1920
* You cannot attach two formatters to a handler
2021
* Two handlers cannot access the same file
2122

2223
Having both those be true simultaneously presents problems.
2324

24-
For our process logger, where a lot of context is erronenous,
25+
For our process logger, where a lot of context is erroneous,
2526
we strip useless data from the process logger by using a filter.

0 commit comments

Comments
 (0)