-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
59 lines (54 loc) · 1.11 KB
/
Copy pathtox.ini
File metadata and controls
59 lines (54 loc) · 1.11 KB
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
52
53
54
55
56
57
58
59
[tox]
minversion = 4.0
envlist =
py{3.9,3.10,3.11,3.12,3.13}-django4.2
py{3.10,3.11,3.12,3.13}-django5.0
py{3.11,3.12,3.13}-django5.1
py{3.12,3.13}-django5.2
lint
ruff
[testenv]
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONWARNINGS = always
PYTHONDONTWRITEBYTECODE = 1
AWS_CONFIG_FILE = {toxinidir}/tests/no_such_file.conf
commands =
pytest --cov=storages {posargs}
deps =
django4.2: django~=4.2.0
django5.0: django~=5.0.0
django5.1: django~=5.1.0
django5.2: django~=5.2.0
djangomain: https://github.com/django/django/archive/main.tar.gz
django-storages[boto3]>=1.14.2
pytest
pytest-cov
moto
boto3
rsa
extras =
boto3
[testenv:lint]
description = Run code style and formatting checks
skip_install = true
deps =
black
ruff
commands =
black --check .
ruff check .
[testenv:ruff]
description = Run only ruff linter
skip_install = true
deps = ruff
commands = ruff check .
[pytest]
testpaths = tests/
addopts = -v --tb=short
[coverage:run]
branch = True
source = special_storages
omit =
*/tests/*
*/__init__.py