We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dace05 commit 5affb8aCopy full SHA for 5affb8a
7 files changed
.github/workflows/test.yml
@@ -9,14 +9,9 @@ jobs:
9
runs-on: ubuntu-latest
10
steps:
11
- uses: actions/checkout@v4
12
- - name: Set up Python
13
- uses: actions/setup-python@v5
14
- with:
15
- python-version: '3.x'
16
- - name: Install pre-commit
17
- run: python -m pip install pre-commit
18
- - name: Run pre-commit
19
- run: pre-commit run --all-files
+ - uses: jdx/mise-action@v2
+ - name: Lint
+ run: mise lint
20
21
test:
22
strategy:
.pre-commit-config.yaml
@@ -1,6 +1,6 @@
1
repos:
2
- repo: https://github.com/astral-sh/ruff-pre-commit
3
- rev: v0.11.6
+ rev: v0.13.1
4
hooks:
5
- id: ruff-format
6
args: [., --check]
@@ -10,6 +10,6 @@ repos:
args: [., --fix, --exit-non-zero-on-fix, --show-fixes]
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.15.0
+ rev: v1.18.1
- id: mypy
mise.toml
@@ -0,0 +1,14 @@
+[hooks]
+enter = "mise install"
+
+[env]
+VENV = ".venv"
+_.python.venv = { path = "{{env.VENV}}", create = true }
7
+UV_PROJECT_ENVIRONMENT = "{{env.VENV}}"
8
+[tools]
+python = "3.10"
+prek = "latest"
+[tasks.lint]
+run = "prek run --all-files"
pyproject.toml
@@ -23,7 +23,6 @@ ignore = [
23
"S101", # Use of `assert` detected
24
"SIM201", # negate-equal-op
25
"SIM202", # negate-not-equal-op
26
- "UP038", # non-pep604-isinstance: This rule is deprecated
27
]
28
29
[tool.ruff.lint.isort]
pytest_unordered/__init__.py
@@ -14,7 +14,7 @@
from _pytest.config import Config
-class UnorderedList(list):
+class UnorderedList(list): # noqa: PLW1641
def __init__(self, expected: Iterable, *, check_type: bool = True) -> None:
if not isinstance(expected, Iterable):
msg = f"cannot make unordered comparisons to non-iterable: {expected!r}"
tests/test_unordered.py
@@ -271,8 +271,8 @@ def test_mock_any() -> None:
271
(unordered_deep([1, 2, 3]), [3, 2, 1]),
272
(unordered_deep((1, 2, 3)), (3, 2, 1)),
273
(unordered_deep({1, 2, 3}), {3, 2, 1}),
274
- (unordered_deep([1, 2, {"a": (4, 5, 6)}]), [{"a": [6, 5, 4]}, 2, 1]), # fmt: skip
275
- (unordered_deep([{1: (["a", "b"])}, 2, 3]), [3, 2, {1: ["b", "a"]}]), # fmt: skip
+ (unordered_deep([1, 2, {"a": (4, 5, 6)}]), [{"a": [6, 5, 4]}, 2, 1]),
+ (unordered_deep([{1: (["a", "b"])}, 2, 3]), [3, 2, {1: ["b", "a"]}]),
276
(unordered_deep(("a", "b", "c")), ["b", "a", "c"]),
277
],
278
)
tox.ini
@@ -2,7 +2,7 @@
envlist =
{py38,py39}-{pytest7,pytest8},
{py310,py311,py312,py313,pypy3}-{pytest7,pytest8,pytestlatest},
- pre-commit
+ prek
[testenv]
commands =
@@ -14,7 +14,7 @@ deps =
pytest8: pytest>=8.1.1,<9
pytestlatest: pytest
-[testenv:pre-commit]
+[testenv:prek]
skip_install = true
-deps = pre-commit
-commands = pre-commit run --all-files
+deps = prek
+commands = prek run --all-files
0 commit comments