Skip to content

Commit 314b2d7

Browse files
committed
fix tox file
1 parent 18ba975 commit 314b2d7

File tree

6 files changed

+14
-89
lines changed

6 files changed

+14
-89
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ run-iqe-local:
5353
cd scripts; ./local_iqe_container.sh $(IQE_CMD)
5454

5555
requirements:
56-
pipenv lock
56+
uv sync

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ For generating sample data for developing or testing Koku, please refer to [Inge
3535

3636
#### Testing
3737

38-
Nise uses tox to standardize the environment used when running tests. Essentially, tox manages its own virtual environment and a copy of required dependencies to run tests. To ensure a clean tox environment run
38+
Nise uses tox to standardize the environment used when running tests. Install `tox-uv` ([docs]https://github.com/tox-dev/tox-uv):
3939

40-
uv run -- tox -r
40+
uv tool install tox --with tox-uv # use uv to install
41+
42+
tox manages its own virtual environment and a copy of required dependencies to run tests. To ensure a clean tox environment run
43+
44+
tox -r
4145

4246
This will rebuild the tox virtual env and then run all tests.
4347

pyproject.toml

-9
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ dev = [
3232
"coverage>=7.6.12",
3333
"hatch>=1.14.0",
3434
"pre-commit>=4.1.0",
35-
"tox>=4.24.1",
3635
]
3736

3837
[project.scripts]
@@ -79,11 +78,3 @@ quote-style = "double"
7978
indent-style = "space"
8079
skip-magic-trailing-comma = false
8180
line-ending = "auto"
82-
83-
[tool.tox]
84-
env_list = ["3.11"]
85-
86-
[tool.tox.env_run_base]
87-
description = "Run test under {base_python}"
88-
deps = ["coverage"]
89-
commands = [["coverage", "run", "-m", "unittest", "discover", "{toxinidir}/tests/", "-v"], ["coverage", "report", "--show-missing"]]

requirements/build-constraints.txt

-1
This file was deleted.

tox.ini

+6-32
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,17 @@
11
[tox]
2-
envlist = py311
2+
envlist = 3.11
33
skipsdist = True
44

5-
[flake8]
6-
; D106 = Missing docstring in public nested class
7-
; D212 = Multi-line docstring summary should start at the first line
8-
; W503 = Line break before binary operator
9-
ignore = D106,D212,W503
10-
max-complexity = 10
11-
max-line-length = 120
12-
import-order-style = pycharm
13-
application-import-names = nise
14-
per-file-ignores =
15-
__init__.py: F401
16-
175
[testenv]
18-
setenv =
19-
PYTHONPATH={toxinidir}
20-
deps =
21-
pipenv
22-
codecov
6+
runner = uv-venv-lock-runner
7+
extras =
8+
dev
9+
allowlist_externals=
10+
/bin/sh
2311
commands =
24-
pipenv install --dev
2512
coverage run -m unittest discover {toxinidir}/tests/ -v
2613
coverage report --show-missing
2714

28-
[testenv:lint]
29-
deps =
30-
flake8
31-
flake8-docstrings
32-
flake8-import-order
33-
flake8-quotes
34-
pipenv
35-
setenv =
36-
PYTHONPATH={toxinidir}
37-
commands =
38-
flake8 nise --ignore=C901,Q000
39-
pipenv install --dev --ignore-pipfile
40-
4115
[testenv:sanity]
4216
usedevelop = True
4317
deps =

uv.lock

+1-44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)