Skip to content

Commit e7b5573

Browse files
committed
build: Fix tox config for linting and python version
Branch: main Signed-off-by: Gabe Goodhart <[email protected]>
1 parent 2ba8803 commit e7b5573

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

tox.ini

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ envlist = py, lint, fmt
33

44
[testenv]
55
description = run tests with pytest with coverage
6+
basepython = python3.11
67
extras =
78
dev-test
89
passenv =
@@ -30,7 +31,7 @@ extras =
3031
all
3132
dev-fmt
3233
dev-test
33-
commands = ruff check caikit examples
34+
commands = ruff check caikit_compose examples
3435

3536
[testenv:imports]
3637
description = enforce internal import rules
@@ -50,23 +51,3 @@ skip_install = True
5051
description = check wheel
5152
deps = twine
5253
commands = twine check dist/*
53-
54-
# Ensure compatibility is maintained with protobuf 3.X
55-
[testenv:proto3]
56-
description = run tests with pytest with coverage
57-
extras = dev-proto3
58-
commands =
59-
pytest --cov=caikit --cov-report=html {posargs:tests -m "not examples"}
60-
61-
# Ensure tests targeting caikit.core can be run with no optional dependencies
62-
[testenv:core]
63-
description = run tests against caikit.core without any extras
64-
base = ""
65-
extras = dev-test
66-
commands =
67-
pytest tests/core
68-
69-
# Runs dsconverter on caikit
70-
[testenv:dsconverter]
71-
description = convert docstrings to google
72-
commands = python ./scripts/dsconverter.py caikit

0 commit comments

Comments
 (0)