mirror of
https://github.com/matrix-org/synapse-s3-storage-provider.git
synced 2024-10-23 07:29:40 +00:00
fa27fa1a92
* Fix CI again * Try invoking isort etc directly * Don't bother nuking pyc files * Remove usedevelop and commented-out 'find' invocation
44 lines
844 B
INI
44 lines
844 B
INI
[base]
|
|
deps =
|
|
coverage
|
|
boto3
|
|
mock
|
|
matrix-synapse
|
|
|
|
setenv =
|
|
PYTHONDONTWRITEBYTECODE = no_byte_code
|
|
|
|
[testenv]
|
|
deps =
|
|
{[base]deps}
|
|
|
|
setenv =
|
|
{[base]setenv}
|
|
|
|
passenv = *
|
|
|
|
commands =
|
|
coverage run --include=s3_storage_provider.py -m twisted.trial test_s3
|
|
coverage report -m
|
|
|
|
[testenv:packaging]
|
|
deps =
|
|
check-manifest
|
|
commands =
|
|
check-manifest
|
|
|
|
[testenv:pep8]
|
|
skip_install = True
|
|
basepython = python3.7
|
|
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
|
|
flake8 s3_storage_provider.py setup.py scripts/s3_media_upload
|
|
|
|
[testenv:check_isort]
|
|
skip_install = True
|
|
deps = isort
|
|
commands = isort -c -sp setup.cfg -rc s3_storage_provider.py setup.py scripts/s3_media_upload
|