mirror of
https://github.com/hemna/aprsd-slack-plugin.git
synced 2024-09-07 13:56:39 -04:00
72 lines
1.8 KiB
INI
72 lines
1.8 KiB
INI
[flake8]
|
|
# Use the more relaxed max line length permitted in PEP8.
|
|
max-line-length = 99
|
|
# This ignore is required by black.
|
|
extend-ignore = E203
|
|
extend-exclude =
|
|
venv
|
|
|
|
# This is the configuration for the tox-gh-actions plugin for GitHub Actions
|
|
# https://github.com/ymyzk/tox-gh-actions
|
|
# This section is not needed if not using GitHub Actions for CI.
|
|
[gh-actions]
|
|
python =
|
|
3.9: py39
|
|
|
|
[tox]
|
|
# These are the default environments that will be run
|
|
# when ``tox`` is run without arguments.
|
|
envlist =
|
|
lint
|
|
py{39}
|
|
skip_missing_interpreters = true
|
|
|
|
# Activate isolated build environment. tox will use a virtual environment
|
|
# to build a source distribution from the source tree. For build tools and
|
|
# arguments use the pyproject.toml file as specified in PEP-517 and PEP-518.
|
|
isolated_build = true
|
|
|
|
[testenv]
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/requirements-dev.txt
|
|
commands =
|
|
# Use -bb to enable BytesWarnings as error to catch str/bytes misuse.
|
|
# Use -Werror to treat warnings as errors.
|
|
{envpython} -bb -Werror -m pytest {posargs}
|
|
|
|
[testenv:type-check]
|
|
skip_install = true
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/requirements-dev.txt
|
|
commands =
|
|
mypy src tests
|
|
|
|
[testenv:lint]
|
|
skip_install = true
|
|
deps =
|
|
-r{toxinidir}/requirements-dev.txt
|
|
commands =
|
|
flake8 aprsd_slack_plugin tests
|
|
|
|
[testenv:docs]
|
|
skip_install = true
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/requirements-dev.txt
|
|
changedir = {toxinidir}/docs
|
|
commands =
|
|
{envpython} clean_docs.py
|
|
sphinx-apidoc --force --output-dir apidoc {toxinidir}/aprsd_slack_plugin
|
|
sphinx-build -a -W . _build
|
|
|
|
[testenv:licenses]
|
|
skip_install = true
|
|
recreate = true
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
pip-licenses
|
|
commands =
|
|
pip-licenses {posargs}
|