azavea/django-amazon-ses

View on GitHub
tox.ini

Summary

Maintainability
Test Coverage
[tox]
envlist =
    lint
    packaging
    py{37,38,39}-django22
    py{37,38,39,310}-django32
    py{38,39,310}-django40
    py{38,39,310}-djangomain

[gh-actions]
python =
    3.7: py37, lint
    3.8: py38
    3.9: py39
    3.10: py310, packaging

[testenv]
deps =
    django22: Django>=2.2,<2.3
    django32: Django>=3.2,<4.0
    django40: Django>=4.0,<4.1
    djangomain: https://github.com/django/django/archive/main.tar.gz
    moto>=1.0.0
    pytest-cov
    pytest
commands =
    pytest --cov-report=xml --cov=django_amazon_ses

[testenv:lint]
deps =
    black
    check-manifest
    flake8
    readme_renderer
commands =
    check-manifest --ignore tox.ini
    flake8 .
    black --check --diff .
skip_install = true

[testenv:packaging]
deps =
    setuptools
    twine
    wheel
skip_install = true
commands =
    python setup.py sdist bdist_wheel
    twine check --strict dist/*

[flake8]
max-line-length = 88
extend-ignore = E203