forked from kvesteri/sqlalchemy-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
55 lines (52 loc) · 1.87 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
52
53
54
55
[tox]
envlist =
py{36, 37, 38, 39, 310}-sqlalchemy{13, 14}
lint
[testenv]
commands =
py.test sqlalchemy_utils --cov=sqlalchemy_utils --cov-report=xml tests
deps =
.[test_all]
pytest-cov
sqlalchemy13: SQLAlchemy[postgresql_pg8000]>=1.3,<1.4
sqlalchemy14: SQLAlchemy>=1.4,<1.5
; It's sometimes necessary to test against specific sqlalchemy versions
; to verify bug or feature behavior before or after a specific version.
;
; You can choose the sqlalchemy version using this command syntax:
; $ tox -e py39-sqlalchemy1_4_xx
;
; sqlalchemy 1.4.19 through 1.4.23 have JSON-related TypeErrors. See #543.
sqlalchemy1_4_19: SQLAlchemy==1.4.19
; sqlalchemy <1.4.28 threw a DeprecationWarning when copying a URL. See #573.
sqlalchemy1_4_27: SQLAlchemy==1.4.27
; sqlalchemy 1.4.30 introduced UUID literal quoting. See #580.
sqlalchemy1_4_29: SQLAlchemy==1.4.29
setenv =
SQLALCHEMY_WARN_20 = true
passenv =
SQLALCHEMY_UTILS_TEST_*
recreate = True
[testenv:lint]
recreate = True
commands =
flake8 .
isort --verbose --diff .
isort --verbose --check-only .
skip_install = True
deps =
flake8
isort
[pytest]
filterwarnings =
error
; Ignore DeprecationWarnings caused by backports.zoneinfo (Python 3.6).
ignore:open_text is deprecated. Use files\(\) instead.:DeprecationWarning
ignore:open_binary is deprecated. Use files\(\) instead.:DeprecationWarning
; Ignore ResourceWarnings caused by unclosed sockets in pg8000.
; These are caught and re-raised as pytest.PytestUnraisableExceptionWarnings.
ignore:Exception ignored:pytest.PytestUnraisableExceptionWarning
; Ignore DeprecationWarnings caused by pg8000.
ignore:distutils Version classes are deprecated.:DeprecationWarning
; Ignore cryptography deprecation warnings (Python 3.6).
ignore:Python 3.6 is no longer supported:UserWarning