synapse-s3-storage-provider/tox.ini
Sean a5b15d644d
Misc improvements to scripts/s3_media_upload and fix CI (#59)
scripts/s3_media_upload:
* Mark `scripts/s3_media_upload` as executable
* Fix `scripts/s3_media_upload` shebang to respect virtual environments
* Format `scripts/s3_media_upload`
* Remove unused imports from `scripts/s3_media_upload`
* Include `scripts/s3_media_upload` in CI checks
* Refactor `s3_media_upload`'s `run_check_delete` to use `to_path` instead of duplicating code

CI:
* Fix branch names in CI config
2021-09-10 11:39:50 +01:00

60 lines
1.1 KiB
INI

[base]
deps =
coverage
boto3
mock
matrix-synapse
setenv =
PYTHONDONTWRITEBYTECODE = no_byte_code
[testenv]
deps =
{[base]deps}
setenv =
{[base]setenv}
passenv = *
commands =
/usr/bin/find "{toxinidir}" -name '*.pyc' -delete
coverage run --include=s3_storage_provider.py -m twisted.trial test_s3
coverage report -m
[testenv:py35]
usedevelop=true
[testenv:py36]
usedevelop=true
[testenv:py37]
usedevelop=true
[testenv:py38]
usedevelop=true
[testenv:py39]
usedevelop=true
[testenv:packaging]
deps =
check-manifest
commands =
check-manifest
[testenv:pep8]
skip_install = True
basepython = python3.6
deps =
flake8
# We pin so that our tests don't start failing on new releases of black.
black==19.10b0
commands =
python -m black --check --diff . scripts/s3_media_upload
/bin/sh -c "flake8 s3_storage_provider.py setup.py scripts/s3_media_upload"
[testenv:check_isort]
skip_install = True
deps = isort
commands = /bin/sh -c "isort -c -sp setup.cfg -rc s3_storage_provider.py setup.py scripts/s3_media_upload"