Skip to content

Commit

Permalink
'tox.ini-file'
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvaneshkm committed Jun 16, 2024
1 parent 8f97727 commit 4fde08e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[tox]
envlist = python3.10, python3.11

[gh-actions]
python =
3.10: python3.10
3.11: python3.11

[testenv]
deps = -r requirements_dev.txt
commands =
# black
black src/
# stop the build if there are Python syntax errors or undefined names
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# type linting
mypy src/
# pytest unit
pytest -v tests/unit
# pytest integration
pytest -v tests/integration

0 comments on commit 4fde08e

Please sign in to comment.