diff --git a/docker-compose.yml b/docker-compose.yml index 267d3c02..c98f4794 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: - "8000:8000" volumes: - "${PWD}:/app" + - /app/.tox command: gunicorn pyslackersweb:app_factory --access-logfile - --bind=0.0.0.0:8000 --worker-class=aiohttp.GunicornWebWorker --reload redis: diff --git a/tox.ini b/tox.ini index 8858642e..32390469 100644 --- a/tox.ini +++ b/tox.ini @@ -4,15 +4,15 @@ skipsdist = true [testenv] deps = -r requirements/testing.txt -commands = python -m pytest --verbose --cov=pyslackersweb/ --cov-report=term-missing --junit-xml={envdir}/artifacts/test-results.xml +commands = python -m pytest --verbose --cov=pyslackersweb/ --cov-report=term-missing --junit-xml={envdir}/artifacts/test-results.xml tests/ [testenv:lint] deps = -r requirements/testing.txt commands = - pylint pyslackersweb - mypy . --ignore-missing-imports + pylint ./pyslackersweb + mypy ./pyslackersweb --ignore-missing-imports [testenv:fmt] deps = black -commands = black --check . +commands = black --check pyslackersweb/ tests/