Skip to content

Commit

Permalink
fix: 🐞 complete new tox and removal of makefile (#59)
Browse files Browse the repository at this point in the history
Signed-off-by: Onuralp SEZER <[email protected]>
  • Loading branch information
onuralpszr authored Oct 25, 2024
1 parent 5c9608e commit cf11d4f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 31 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ repos:
hooks:
- id: autoflake

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0'
hooks:
- id: mypy

ci:
autofix_commit_msg: fix(pre-commit):🎨 Auto format from pre-commit.com hooks
autoupdate_commit_msg: dev(pre-commit):⬆ pre-commit autoupdate
24 changes: 0 additions & 24 deletions Makefile

This file was deleted.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ django-stubs = {extras = ["compatible-mypy"], version = "^5.1.0"}

[tool.pytest.ini_options]
addopts = "--cov=bulk_copy --cov-report=term-missing"
DJANGO_SETTINGS_MODULE = "tests.settings"
python_files = ["tests.py", "test_*.py", "*_tests.py"]

[tool.coverage.report]
Expand Down
26 changes: 20 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
[tox]
skip_missing_interpreters = true
envlist =
{py37,py38,py39,py310}-django32-psycopg2,
{py38,py39,py310}-{django40,django41,latest}-psycopg2,

envlist = py310,py311,py312

[testenv]
whitelist_externals = poetry
commands = python manage.py test
allowlist_externals = poetry,docker,sh,docker-compose
deps =
poetry
pytest
pytest-cov
pytest_mock
psycopg2-binary
coverage
pytest-django
commands_pre =
docker-compose up -d
sh -c 'sleep 2'
poetry run python manage.py migrate
commands = pytest tests/
commands_post =
docker-compose down -v
setenv =
PYTHONDONTWRITEBYTECODE=1
DJANGO_SETTINGS_MODULE=tests.settings


0 comments on commit cf11d4f

Please sign in to comment.