Skip to content

Commit 980bd91

Browse files
committed
fix tox error on python 3.8
Change-Id: I1f2f7789c803024f8feec4d8626564bbec04b386
1 parent 94f672c commit 980bd91

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tox.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[tox]
22

3-
43
envlist = py-sqlalchemy
54

65
SQLA_REPO = {env:SQLA_REPO:git+https://github.com/sqlalchemy/sqlalchemy.git}
@@ -26,7 +25,7 @@ deps=pytest>4.6,<8.2
2625
backports.zoneinfo;python_version<"3.9"
2726
tzdata
2827
zimports
29-
black==24.10.0
28+
black==24.10.0;python_version>"3.8"
3029
greenlet>=1
3130

3231

@@ -97,7 +96,7 @@ deps=
9796
pydocstyle<4.0.0
9897
# used by flake8-rst-docstrings
9998
pygments
100-
black==24.10.0
99+
black==24.10.0;python_version>"3.8"
101100
commands =
102101
flake8 ./alembic/ ./tests/ setup.py docs/build/conf.py {posargs}
103102
black --check setup.py tests alembic
@@ -108,5 +107,5 @@ deps=
108107
sqlalchemy>=2
109108
mako
110109
zimports
111-
black==24.10.0
110+
black==24.10.0;python_version>"3.8"
112111
commands = python tools/write_pyi.py

0 commit comments

Comments
 (0)