Skip to content

Commit 6be3602

Browse files
committed
Move the tox and flake8 configuration to pyproject.toml
1 parent b177039 commit 6be3602

3 files changed

Lines changed: 25 additions & 19 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ repos:
99
rev: 7.3.0
1010
hooks:
1111
- id: flake8
12+
additional_dependencies: [Flake8-pyproject]
1213

1314
- repo: https://github.com/pre-commit/pre-commit-hooks
1415
rev: v4.4.0

pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,27 @@ source-exclude = [
7171

7272
[tool.pytest.ini_options]
7373
testpaths = ["tests"]
74+
75+
[tool.flake8]
76+
max-line-length = 120
77+
78+
[tool.tox]
79+
envlist = [
80+
"style",
81+
]
82+
83+
[tool.tox.env_run_base]
84+
runner = "uv-venv-lock-runner"
85+
use_frozen_constraints = true
86+
dependency_groups = [
87+
"tests",
88+
]
89+
commands = [["pytest"]]
90+
91+
[tool.tox.env.style]
92+
runner = "uv-venv-lock-runner"
93+
dependency_groups = [
94+
"pre-commit",
95+
]
96+
skip_install = true
97+
commands = [["pre-commit", "run", "--all-files"]]

tox.ini

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)