Skip to content

Commit

Permalink
django 4.1 and python 3.11 (#275)
Browse files Browse the repository at this point in the history
* django 4.1 and python 3.11

* django 4.1 and python 3.11

* check qa

Co-authored-by: marianoeramirez <Sosinformatico1990>
  • Loading branch information
marianoeramirez authored Nov 28, 2022
1 parent 73322f1 commit 14d4996
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8,3.9,'3.10']
python-version: [3.8,3.9,'3.10', '3.11']
services:
postgres:
image: postgres:13-alpine
Expand Down
3 changes: 2 additions & 1 deletion src/cities_light/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.apps import AppConfig


class CitiesLightConfig(AppConfig):
default_auto_field = 'django.db.models.AutoField'
name = 'cities_light'
name = 'cities_light'
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38,39,310}-django{30,31,32,40}{-sqlite,-mysql,-postgresql},
py{38,39,310,3.11}-django{30,31,32,40,41}{-sqlite,-mysql,-postgresql},
checkqa,
pylint,
docs
Expand All @@ -12,6 +12,7 @@ python =
3.8: py38, docs, checkqa, pylint, mypy
3.9: py39
3.10: py310
3.11: py311

[base]
deps =
Expand Down Expand Up @@ -53,6 +54,7 @@ deps =
django31: Django>=3.1,<3.2
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
postgresql: psycopg2-binary==2.8.6
mysql: mysqlclient
setenv =
Expand All @@ -70,12 +72,12 @@ setenv =
passenv = TEST_* DBDIFF_* DB_* PGPASSWORD

[testenv:checkqa]
basepython = python3.7
basepython = python3.8
commands = pycodestyle --ignore=E402,E124,E128 --exclude=tests,migrations src/cities_light
deps = pycodestyle

[testenv:pylint]
basepython = python3.7
basepython = python3.8
commands = pylint -j 4 --load-plugins pylint_django src/cities_light -E
deps =
{[test]deps}
Expand All @@ -87,7 +89,7 @@ deps =
{[docs]deps}
{[test]deps}
# all supported database backends
psycopg2-binary==2.8.6
psycopg2-binary==2.9.2
mysqlclient
# ipython
ipython
Expand Down

0 comments on commit 14d4996

Please sign in to comment.