Skip to content

Commit d424519

Browse files
authored
Move tox config to setup.cfg (#125)
1 parent 6ca572b commit d424519

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

pyproject.toml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,3 @@ capitalisation_policy = 'upper'
4949
[tool.sqlfluff.rules.convention.terminator]
5050
multiline_newline = true
5151
require_final_semicolon = true
52-
53-
[tool.tox]
54-
envlist = ["py", "pypy3", "pre-commit"]
55-
56-
[tool.tox.env.pre-commit]
57-
commands = [["pre-commit", "run", "--all-files", "--show-diff-on-failure"]]
58-
deps = "pre-commit-uv"
59-
skip_install = true
60-
61-
[tool.tox.env_run_base]
62-
commands = [
63-
["coverage", "erase"],
64-
["coverage", "run", "-m", "pytest", "{posargs:tests}"],
65-
["coverage", "report"],
66-
]
67-
deps = "-rrequirements-dev.txt"

setup.cfg

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,18 @@ universal = True
3737

3838
[coverage:run]
3939
plugins = covdefaults
40+
41+
[tox:tox]
42+
envlist = py,pypy3,pre-commit
43+
44+
[testenv]
45+
deps = -rrequirements-dev.txt
46+
commands =
47+
coverage erase
48+
coverage run -m pytest {posargs:tests}
49+
coverage report
50+
51+
[testenv:pre-commit]
52+
skip_install = true
53+
deps = pre-commit-uv
54+
commands = pre-commit run --all-files --show-diff-on-failure

0 commit comments

Comments
 (0)