|
1 | | -# content of: tox.ini , put in same dir as setup.py |
| 1 | +# Tox configuration for automated testing and code quality checks |
| 2 | +# Place in same directory as setup.py |
2 | 3 | [tox] |
3 | 4 | envlist = py310 |
4 | 5 |
|
| 6 | +# Flake8 linter configuration |
5 | 7 | [flake8] |
6 | | -per-file-ignores = __init__.py:F401 |
7 | | -ignore = E501, E203, W503, E731 |
| 8 | +per-file-ignores = __init__.py:F401 # Allow unused imports in __init__.py files |
| 9 | +ignore = E501, E203, W503, E731 # Ignore line length, whitespace, and lambda warnings |
8 | 10 |
|
| 11 | +# Test environment configuration |
9 | 12 | [testenv] |
10 | | -# install pytest in the virtualenv where commands will be executed |
| 13 | +# Install project and testing dependencies |
11 | 14 | deps = |
12 | | - -e {toxinidir}/. |
| 15 | + -e {toxinidir}/. # Install project in editable mode |
13 | 16 | -r{toxinidir}/requirements.testing.txt |
| 17 | + |
| 18 | +# Run code quality checks and tests |
14 | 19 | commands = |
15 | | - flake8 transcribe_anything tests install_cuda.py |
16 | | - pylint transcribe_anything tests install_cuda.py |
17 | | - mypy transcribe_anything tests install_cuda.py |
18 | | - # NOTE: you can run any command line tool here - not just tests |
19 | | - python -m unittest discover tests |
| 20 | + flake8 transcribe_anything tests install_cuda.py # Lint code style |
| 21 | + pylint transcribe_anything tests install_cuda.py # Static code analysis |
| 22 | + mypy transcribe_anything tests install_cuda.py # Type checking |
| 23 | + python -m unittest discover tests # Run unit tests |
0 commit comments