Skip to content

Commit

Permalink
build: Fix tox config for linting and python version
Browse files Browse the repository at this point in the history
Branch: main

Signed-off-by: Gabe Goodhart <[email protected]>
  • Loading branch information
gabe-l-hart committed Dec 9, 2024
1 parent 2ba8803 commit afb7912
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extras =
all
dev-fmt
dev-test
commands = ruff check caikit examples
commands = ruff check caikit_compose examples

[testenv:imports]
description = enforce internal import rules
Expand All @@ -50,23 +50,3 @@ skip_install = True
description = check wheel
deps = twine
commands = twine check dist/*

# Ensure compatibility is maintained with protobuf 3.X
[testenv:proto3]
description = run tests with pytest with coverage
extras = dev-proto3
commands =
pytest --cov=caikit --cov-report=html {posargs:tests -m "not examples"}

# Ensure tests targeting caikit.core can be run with no optional dependencies
[testenv:core]
description = run tests against caikit.core without any extras
base = ""
extras = dev-test
commands =
pytest tests/core

# Runs dsconverter on caikit
[testenv:dsconverter]
description = convert docstrings to google
commands = python ./scripts/dsconverter.py caikit

0 comments on commit afb7912

Please sign in to comment.