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
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:
persist-credentials: false

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

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
2 changes: 1 addition & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0

- name: Run CodSpeed benchmarks
uses: CodSpeedHQ/action@6eeb021fd0f305388292348b775d96d95253adf4 # v4.0.0
uses: CodSpeedHQ/action@653fdc30e6c40ffd9739e40c8a0576f4f4523ca1 # v4.0.1
with:
mode: instrumentation
token: ${{ secrets.CODSPEED_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
with:
# Path to SARIF file relative to the root of the repository
sarif_file: results.sarif
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.11
rev: v0.13.1
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
Expand Down
8 changes: 4 additions & 4 deletions tests/test_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -2363,7 +2363,7 @@ def test_order_without_eq(self):
eq=False, order=True raises a meaningful ValueError.
"""
with pytest.raises(
ValueError, match="`order` can only be True if `eq` is True too."
ValueError, match="`order` can only be True if `eq` is True too"
):
_determine_attrs_eq_order(None, False, True, True)

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

with pytest.raises(
ValueError, match="Don't mix `cmp` with `eq' and `order`."
ValueError, match="Don't mix `cmp` with `eq' and `order`"
):
_determine_attrs_eq_order(cmp, eq, order, True)

Expand Down Expand Up @@ -2430,7 +2430,7 @@ def test_order_without_eq(self):
eq=False, order=True raises a meaningful ValueError.
"""
with pytest.raises(
ValueError, match="`order` can only be True if `eq` is True too."
ValueError, match="`order` can only be True if `eq` is True too"
):
_determine_attrib_eq_order(None, False, True, True)

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

with pytest.raises(
ValueError, match="Don't mix `cmp` with `eq' and `order`."
ValueError, match="Don't mix `cmp` with `eq' and `order`"
):
_determine_attrib_eq_order(cmp, eq, order, True)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@
reveal_type(a.x) # N: Revealed type is "builtins\.list\[builtins\.int\]"
reveal_type(a.y) # N: Revealed type is "builtins\.int"

A(['str'], 7) # E: Cannot infer type argument 1 of "A" \[misc\]
A([1], '2') # E: Cannot infer type argument 1 of "A" \[misc\]
A(['str'], 7) # E: Cannot infer value of type parameter "T" of "A" \[misc\]
A([1], '2') # E: Cannot infer value of type parameter "T" of "A" \[misc\]

- case: testAttrsUntypedGenericInheritance
main: |
Expand Down
2 changes: 1 addition & 1 deletion tests/test_next_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class A:
pass

with pytest.raises(
ValueError, match="Frozen classes can't use on_setattr."
ValueError, match="Frozen classes can't use on_setattr"
):

@attrs.define(frozen=True, on_setattr=attrs.setters.validate)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_setattr.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def test_setattr_auto_detect_frozen(self, slots):
frozen=True together with a detected custom __setattr__ are rejected.
"""
with pytest.raises(
ValueError, match="Can't freeze a class with a custom __setattr__."
ValueError, match="Can't freeze a class with a custom __setattr__"
):

@attr.s(auto_detect=True, slots=slots, frozen=True)
Expand All @@ -381,7 +381,7 @@ def test_setattr_auto_detect_on_setattr(self, slots):
"""
with pytest.raises(
ValueError,
match="Can't combine custom __setattr__ with on_setattr hooks.",
match="Can't combine custom __setattr__ with on_setattr hooks",
):

@attr.s(auto_detect=True, slots=slots)
Expand Down
Loading