Skip to content

Commit 0ea624e

Browse files
authored
Bump GitHub actions and checkers (#2376)
1 parent ca86554 commit 0ea624e

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ jobs:
127127
cache-dependency-path: .github/workflows/main.yml
128128
- run: pip install clang-format==18.1.* pycln
129129
- run: pycln . --config=pycln.toml --check
130-
- uses: astral-sh/ruff-action@v2
130+
- uses: astral-sh/ruff-action@v3
131131
with:
132-
version: "0.8.2"
132+
version: "0.8.4"
133133
- run: ruff format --check
134134
- run:
135135
| # Too many files to fit in a single command, also exclude vendored Scintilla and MAPIStubLibrary
@@ -153,7 +153,7 @@ jobs:
153153
cache: pip
154154
cache-dependency-path: .github/workflows/main.yml
155155
check-latest: true
156-
- run: pip install types-setuptools PyOpenGL mypy==1.11
156+
- run: pip install types-setuptools PyOpenGL mypy[faster-cache]==1.14.*
157157
- run: mypy . --python-version=${{ matrix.python-version }}
158158

159159
pyright:
@@ -176,5 +176,5 @@ jobs:
176176
- uses: jakebailey/pyright-action@v2
177177
with:
178178
python-version: ${{ matrix.python-version }}
179-
version: "1.1.358"
179+
version: "1.1.389"
180180
annotate: errors

.pre-commit-config.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# You can run this locally with `pre-commit run [--all]`
1+
# You can run this locally with `pre-commit run --all`
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.6.0
4+
rev: v5.0.0
55
hooks:
66
- id: trailing-whitespace
77
args: [--markdown-linebreak-ext=md]
@@ -10,10 +10,11 @@ repos:
1010
args: [--fix=crlf]
1111
- id: check-case-conflict
1212
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
13-
rev: v2.13.0
13+
rev: v2.14.0
1414
hooks:
15-
- id: pretty-format-toml
16-
args: [--autofix, --trailing-commas, --inline-comment-spaces, "1", --no-sort]
15+
# Has unsafe autofixes. Let's find a better formatter: macisamuele/language-formatters-pre-commit-hooks#202
16+
# - id: pretty-format-toml
17+
# args: [--autofix, --trailing-commas, --inline-comment-spaces, "1", --no-sort]
1718
- id: pretty-format-yaml
1819
args: [--autofix, --indent, "2", --offset, "2", --preserve-quotes]
1920
- id: pretty-format-ini
@@ -25,7 +26,7 @@ repos:
2526
args: [--config=pycln.toml]
2627
verbose: true
2728
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.8.2
29+
rev: v0.8.4
2930
hooks:
3031
- id: ruff # Run the linter.
3132
args: [--fix]

ruff.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ target-version = "py38" # Target the oldest supported version in editors and def
22
# This file is not UTF-8
33
extend-exclude = ["Pythonwin/pywin/test/_dbgscript.py"]
44

5+
[format]
6+
line-ending = "cr-lf"
7+
58
[lint]
69
select = [
710
"C4", # flake8-comprehensions
@@ -36,8 +39,11 @@ select = [
3639
# Helps prevent circular imports and other unneeded imports
3740
"TC", # flake8-type-checking
3841
]
39-
ignore = [
40-
"PLE0704", # misplaced-bare-raise: TODO
42+
43+
extend-ignore = [
44+
# TODO: Consider passing exception around to ensure methods are only ever used within exception handlers
45+
"PLE0704", # misplaced-bare-raise
46+
4147
# No such concerns for stdlib
4248
"TC003", # typing-only-standard-library-import
4349
]

0 commit comments

Comments
 (0)