Skip to content

Commit 4e2c89c

Browse files
authored
Update dev (#1473)
* Update dev env * Fix linter errors * Fix mypy tests
1 parent 1315e42 commit 4e2c89c

9 files changed

Lines changed: 312 additions & 258 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
persist-credentials: false
3030

3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
32+
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
3333
with:
3434
languages: ${{ matrix.language }}
3535

3636
- name: Autobuild
37-
uses: github/codeql-action/autobuild@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
37+
uses: github/codeql-action/autobuild@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
3838

3939
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
40+
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3

.github/workflows/codspeed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
4040

4141
- name: Run CodSpeed benchmarks
42-
uses: CodSpeedHQ/action@6eeb021fd0f305388292348b775d96d95253adf4 # v4.0.0
42+
uses: CodSpeedHQ/action@653fdc30e6c40ffd9739e40c8a0576f4f4523ca1 # v4.0.1
4343
with:
4444
mode: instrumentation
4545
token: ${{ secrets.CODSPEED_TOKEN }}

.github/workflows/zizmor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131

3232
- name: Upload SARIF file
33-
uses: github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
33+
uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
3434
with:
3535
# Path to SARIF file relative to the root of the repository
3636
sarif_file: results.sarif

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44

55
repos:
66
- repo: https://github.com/astral-sh/ruff-pre-commit
7-
rev: v0.12.11
7+
rev: v0.13.1
88
hooks:
99
- id: ruff-check
1010
args: [--fix, --exit-non-zero-on-fix]

tests/test_make.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,7 +2363,7 @@ def test_order_without_eq(self):
23632363
eq=False, order=True raises a meaningful ValueError.
23642364
"""
23652365
with pytest.raises(
2366-
ValueError, match="`order` can only be True if `eq` is True too."
2366+
ValueError, match="`order` can only be True if `eq` is True too"
23672367
):
23682368
_determine_attrs_eq_order(None, False, True, True)
23692369

@@ -2375,7 +2375,7 @@ def test_mix(self, cmp, eq, order):
23752375
assume(eq is not None or order is not None)
23762376

23772377
with pytest.raises(
2378-
ValueError, match="Don't mix `cmp` with `eq' and `order`."
2378+
ValueError, match="Don't mix `cmp` with `eq' and `order`"
23792379
):
23802380
_determine_attrs_eq_order(cmp, eq, order, True)
23812381

@@ -2430,7 +2430,7 @@ def test_order_without_eq(self):
24302430
eq=False, order=True raises a meaningful ValueError.
24312431
"""
24322432
with pytest.raises(
2433-
ValueError, match="`order` can only be True if `eq` is True too."
2433+
ValueError, match="`order` can only be True if `eq` is True too"
24342434
):
24352435
_determine_attrib_eq_order(None, False, True, True)
24362436

@@ -2442,7 +2442,7 @@ def test_mix(self, cmp, eq, order):
24422442
assume(eq is not None or order is not None)
24432443

24442444
with pytest.raises(
2445-
ValueError, match="Don't mix `cmp` with `eq' and `order`."
2445+
ValueError, match="Don't mix `cmp` with `eq' and `order`"
24462446
):
24472447
_determine_attrib_eq_order(cmp, eq, order, True)
24482448

tests/test_mypy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,8 @@
477477
reveal_type(a.x) # N: Revealed type is "builtins\.list\[builtins\.int\]"
478478
reveal_type(a.y) # N: Revealed type is "builtins\.int"
479479
480-
A(['str'], 7) # E: Cannot infer type argument 1 of "A" \[misc\]
481-
A([1], '2') # E: Cannot infer type argument 1 of "A" \[misc\]
480+
A(['str'], 7) # E: Cannot infer value of type parameter "T" of "A" \[misc\]
481+
A([1], '2') # E: Cannot infer value of type parameter "T" of "A" \[misc\]
482482
483483
- case: testAttrsUntypedGenericInheritance
484484
main: |

tests/test_next_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class A:
277277
pass
278278

279279
with pytest.raises(
280-
ValueError, match="Frozen classes can't use on_setattr."
280+
ValueError, match="Frozen classes can't use on_setattr"
281281
):
282282

283283
@attrs.define(frozen=True, on_setattr=attrs.setters.validate)

tests/test_setattr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def test_setattr_auto_detect_frozen(self, slots):
366366
frozen=True together with a detected custom __setattr__ are rejected.
367367
"""
368368
with pytest.raises(
369-
ValueError, match="Can't freeze a class with a custom __setattr__."
369+
ValueError, match="Can't freeze a class with a custom __setattr__"
370370
):
371371

372372
@attr.s(auto_detect=True, slots=slots, frozen=True)
@@ -381,7 +381,7 @@ def test_setattr_auto_detect_on_setattr(self, slots):
381381
"""
382382
with pytest.raises(
383383
ValueError,
384-
match="Can't combine custom __setattr__ with on_setattr hooks.",
384+
match="Can't combine custom __setattr__ with on_setattr hooks",
385385
):
386386

387387
@attr.s(auto_detect=True, slots=slots)

0 commit comments

Comments
 (0)