Skip to content

Commit c3376da

Browse files
authored
Merge pull request #1210 from opencobra/fix/tox-for-tests
fix: enable tox for `tests`
2 parents a40febc + 04fb3f6 commit c3376da

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

tests/test_manipulation/test_validate.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
import pytest
44

55
from cobra.core import Metabolite, Model, Reaction
6-
from cobra.manipulation import (
7-
check_mass_balance,
8-
check_metabolite_compartment_formula,
9-
)
6+
from cobra.manipulation import check_mass_balance, check_metabolite_compartment_formula
107

118

129
def test_validate_mass_balance(model: Model) -> None:

tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ skip_install = True
4242
deps=
4343
isort
4444
commands=
45-
isort --check-only --diff {toxinidir}/src/cobra {toxinidir}/setup.py
45+
isort --check-only --diff {toxinidir}/src/cobra {toxinidir}/setup.py {toxinidir}/tests
4646

4747
[testenv:black]
4848
skip_install = True
4949
deps=
5050
black
5151
commands=
52-
black --check --diff {toxinidir}/src/cobra {toxinidir}/setup.py
52+
black --check --diff {toxinidir}/src/cobra {toxinidir}/setup.py {toxinidir}/tests
5353

5454
[testenv:flake8]
5555
skip_install = True
@@ -58,7 +58,7 @@ deps=
5858
flake8-docstrings
5959
flake8-bugbear
6060
commands=
61-
flake8 {toxinidir}/src/cobra {toxinidir}/setup.py
61+
flake8 {toxinidir}/src/cobra {toxinidir}/setup.py {toxinidir}/tests
6262

6363
[testenv:safety]
6464
deps=

0 commit comments

Comments
 (0)