Skip to content

Commit 33c4bd5

Browse files
authored
Merge branch 'main' into drop-py37
2 parents 3f59eda + 8e001ca commit 33c4bd5

File tree

4 files changed

+15
-29
lines changed

4 files changed

+15
-29
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- main
88
pull_request:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
env:
1115
FORCE_COLOR: "1"
1216

@@ -33,24 +37,20 @@ jobs:
3337
python-version: ${{ matrix.python-version }}
3438

3539
- name: Install test dependencies
36-
run: |
37-
python -m pip install --upgrade pip
38-
pip install tox tox-gh-actions
40+
run: pip install tox tox-gh-actions
3941

4042
- name: Test packaging
4143
run: tox -e pkg
4244

4345
- name: Run tests with PyTest 6
4446
run: tox
4547
env:
46-
PLATFORM: ${{ matrix.os }}
4748
PYTEST_MAJOR_VERSION: 6
4849
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
4950

5051
- name: Run tests with PyTest 7
5152
run: tox
5253
env:
53-
PLATFORM: ${{ matrix.os }}
5454
PYTEST_MAJOR_VERSION: 7
5555
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
5656

.pre-commit-config.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: "v4.4.0"
3+
rev: "v5.0.0"
44
hooks:
55
- id: check-added-large-files
66
- id: check-case-conflict
@@ -13,13 +13,8 @@ repos:
1313
- id: requirements-txt-fixer
1414
- id: trailing-whitespace
1515

16-
- repo: https://github.com/mgedmin/check-manifest
17-
rev: "0.49"
18-
hooks:
19-
- id: check-manifest
20-
2116
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: "v0.0.262"
17+
rev: "v0.7.0"
2318
hooks:
2419
- id: ruff
2520
args: ["--fix", "--show-fixes"]

pyproject.toml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ changelog = "https://github.com/pytest-dev/pytest-github-actions-annotate-failur
5151
pytest_github_actions_annotate_failures = "pytest_github_actions_annotate_failures.plugin"
5252

5353

54-
[tool.ruff]
55-
select = [
56-
"E", "F", "W", # flake8
54+
[tool.ruff.lint]
55+
extend-select = [
5756
"B", # flake8-bugbear
5857
"I", # isort
5958
"ARG", # flake8-unused-arguments
@@ -73,17 +72,11 @@ select = [
7372
"YTT", # flake8-2020
7473
"EXE", # flake8-executable
7574
]
76-
extend-ignore = [
75+
ignore = [
7776
"PLR", # Design related pylint codes
78-
"E501", # Line too long
7977
"PT004", # Use underscore for non-returning fixture (use usefixture instead)
8078
]
81-
target-version = "py38"
82-
unfixable = [
83-
"T20", # Removes print statements
84-
"F841", # Removes unused variables
85-
]
8679
isort.required-imports = ["from __future__ import annotations"]
8780

88-
[tool.ruff.per-file-ignores]
81+
[tool.ruff.lint.per-file-ignores]
8982
"tests/**" = ["T20"]

tox.ini

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{38,39,310,311,312}-pytest{6,7}-{linux,windows}
3+
py{37,38,39,310,311,312,313}-pytest{6,7,8}
44
pkg
55

66
[gh-actions]
@@ -12,21 +12,19 @@ python =
1212
3.12: py312
1313

1414
[gh-actions:env]
15-
PLATFORM =
16-
ubuntu-latest: linux
17-
windows-latest: windows
18-
1915
PYTEST_MAJOR_VERSION =
2016
6: pytest6
2117
7: pytest7
18+
8: pytest8
2219

2320
[testenv]
2421
deps =
2522
-rrequirements.txt
2623
pytest6: pytest>=6.0.0,<7.0.0
2724
pytest7: pytest>=7.0.0,<7.4.0
25+
pytest8: pytest>=8.0.0,<9.0.0
2826

29-
commands = {envpython} -m pytest
27+
commands = {envpython} -m pytest {posargs}
3028

3129
[testenv:pkg]
3230
skip_install = true

0 commit comments

Comments
 (0)