Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
[tox]
envlist = py{37,38,39},lint,dependencies
skip_missing_interpreters = True
[testenv]
usedevelop = True
install_command = python -m pip install --no-deps {opts} {packages}
deps =
-r{toxinidir}/requirements/gridsync.txt
-r{toxinidir}/requirements/pytest.txt
commands =
python -m pytest
passenv = APPDATA CI DISPLAY GNOME_DESKTOP_SESSION_ID HOME XAUTHORITY
[testenv:lint]
usedevelop = True
install_command = python -m pip install --no-deps {opts} {packages}
deps =
-r{toxinidir}/requirements/gridsync.txt
-r{toxinidir}/requirements/lint.txt
commands =
black --line-length=79 --check --diff setup.py gridsync tests
isort --line-length=79 --check --diff setup.py gridsync tests
mypy gridsync
flake8 setup.py gridsync tests
pylint --reports=no gridsync
[testenv:pyinstaller]
usedevelop = True
install_command = python -m pip install --no-deps {opts} {packages}
deps =
-r{toxinidir}/requirements/gridsync.txt
-r{toxinidir}/requirements/pyinstaller.txt
setenv =
PYTHONHASHSEED=1
commands =
pip list
pyinstaller -y misc/gridsync.spec
[testenv:integration]
usedevelop = True
install_command = python -m pip install --no-deps {opts} {packages}
deps =
-r{toxinidir}/requirements/gridsync.txt
-r{toxinidir}/requirements/pytest.txt
commands =
python -m pytest tests/integration
[testenv:dependencies]
# To test for conflicts and other depedencies-related issues when
# installing requirements without the "--no-deps" flag as well as to
# check for orphaned or outdated depedencies.
install_command = python -m pip install --upgrade {packages}
deps =
pip
setuptools
wheel
pipdeptree
skip_install = True
ignore_errors = True
ignore_outcome = True
commands =
{envpython} -m pip install -r{toxinidir}/requirements/dmgbuild.txt
{envpython} -m pip install -r{toxinidir}/requirements/gridsync.txt
{envpython} -m pip install -r{toxinidir}/requirements/lint.txt
{envpython} -m pip install -r{toxinidir}/requirements/pyinstaller.txt
{envpython} -m pip install -r{toxinidir}/requirements/pytest.txt
{envpython} -m pip install --editable .
{envpython} -m pipdeptree --local-only
{envpython} -m pip list --outdated
[flake8]
ignore = E203, E265, E402, E501, N802, W503
exclude = scripts/*, misc/*,
max-complexity = 10
[pytest]
testpaths = tests
addopts = -rs -s -m "not slow" --ignore=tests/integration --cov-config=tox.ini --cov-append --cov-report=html --cov=gridsync
qt_api = pyqt5
# .coveragerc
[run]
omit = gridsync/_version.py