forked from jschneier/django-storages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (48 loc) · 1.05 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[tox]
minversion = 1.9
envlist =
py{3.7,3.8,3.9,3.10}-django3.2
py{3.8,3.9,3.10,3.11}-django4.1
py{3.8,3.9,3.10,3.11}-django4.2
py{3.10,3.11,3.12}-django5.0
py{3.10,3.11,3.12}-djangomain
ruff
[testenv]
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONWARNINGS = always
PYTHONDONTWRITEBYTECODE = 1
# Use a non-existent file to prevent boto3 from loading
# any configuration from the user's environment
AWS_CONFIG_FILE = {toxinidir}/tests/no_such_file.conf
commands = pytest --cov=storages {posargs}
deps =
cryptography
django3.2: django~=3.2.9
django4.1: django~=4.1.0
django4.2: django~=4.2.0
django5.0: django~=5.0b1
djangomain: https://github.com/django/django/archive/main.tar.gz
moto<5
pytest
pytest-cov
rsa
extras =
azure
boto3
dropbox
google
libcloud
sftp
[testenv:ruff]
deps =
black
ruff
commands =
ruff check .
black --check .
skip_install = true
[pytest]
# Default test paths to run, if no other paths are specified on the CLI
# (specify paths after a -- e.g. `tox -- tests/test_s3.py`)
testpaths = tests/