Repository: mixxorz/slippers (language: python)

Issue:
Drop Python 3.7 and add Python 3.11



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 9ff02f2..dba7fc1 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -9,12 +9,12 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout
-        uses: actions/checkout@v2.3.1
+        uses: actions/checkout@v3
 
       - name: Set up Node
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
-          node-version: "14"
+          node-version: "16"
 
       - name: Install and Build
         run: |
@@ -23,7 +23,7 @@ jobs:
           npm run build
 
       - name: Deploy 🚀
-        uses: JamesIves/github-pages-deploy-action@4.1.4
+        uses: JamesIves/github-pages-deploy-action@v4.4.3
         with:
           branch: gh-pages
           folder: docs/build
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2ad2c5b..3978809 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -9,19 +9,19 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
 
-      - name: Set up Python 3.10
-        uses: actions/setup-python@v2
+      - name: Set up Python 3.11
+        uses: actions/setup-python@v4
         with:
-          python-version: "3.10"
+          python-version: "3.11"
 
       - name: Install Poetry
         run: |
           pip install poetry
 
       - name: Set up Node.js 18
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
           node-version: "18"
 
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 68f4b13..7b060c9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,20 +1,15 @@
 repos:
-  - repo: https://github.com/asottile/seed-isort-config
-    # adds/updates known_third_party isort config in setup.cfg
-    rev: v1.9.4
-    hooks:
-      - id: seed-isort-config
-  - repo: https://github.com/pre-commit/mirrors-isort
+  - repo: https://github.com/pycqa/isort
     # isort config is in setup.cfg
-    rev: v5.9.2
+    rev: 5.12.0
     hooks:
       - id: isort
   - repo: https://github.com/pycqa/flake8
     # flake8 config is in setup.cfg
-    rev: 3.9.2
+    rev: 6.0.0
     hooks:
       - id: flake8
   - repo: https://github.com/python/black
-    rev: 22.3.0
+    rev: 23.7.0
     hooks:
       - id: black
diff --git a/pyproject.toml b/pyproject.toml
index fd2f6e3..95587f1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -32,12 +32,12 @@ typeguard = "^2.13.3"
 typing-extensions = ">=4.4.0"
 
 [tool.poetry.dev-dependencies]
-black = "^22.3.0"
-isort = "^5.9.2"
-flake8 = "^3.9.2"
-ipdb = "^0.13.9"
-tox = "^3.23.1"
-twine = "^4.0.1"
+black = "^23.7.0"
+isort = "^5.12.0"
+flake8 = "^6.0.0"
+ipdb = "^0.13.13"
+tox = "^4.6.4"
+twine = "^4.0.2"
 
 [build-system]
 requires = ["poetry-core>=1.0.0"]
diff --git a/setup.cfg b/setup.cfg
index c92fb5b..83f7ce2 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -13,4 +13,4 @@ known_third_party = typeguard,yaml
 
 [flake8]
 max-line-length = 120
-extend-exclude = dist/
+extend-exclude = dist/, .venv, venv
diff --git a/tox.ini b/tox.ini
index c9ad24a..2a939d7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,6 @@
 [tox]
-isolated_build = True
+min_version = 4.0
+
 envlist =
     flake8
     black
@@ -17,6 +18,13 @@ python =
     3.11: py311, flake8, black, isort
 
 [testenv]
+package = wheel
+wheel_build_env = .pkg
+
+pass_env =
+    FORCE_COLOR
+    NO_COLOR
+
 deps =
     django32: Django>=3.2,<3.3
     django41: Django>=4.1,<4.2
@@ -25,13 +33,13 @@ commands =
     python runtests.py
 
 [testenv:flake8]
-deps = flake8 >=3.9.2, <4.0.0
+deps = flake8 >=6.0.0, <7.0.0
 commands = flake8
 
 [testenv:black]
-deps = black >=22.3.0, <23.0.0
+deps = black==23.7.0, <24.0.0
 commands = black --check ./
 
 [testenv:isort]
-deps = isort >= 5.9.2, <6.0.0
+deps = isort >= 5.12.0, <6.0.0
 commands = isort slippers tests --check-only --diff


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 18c1f34..71cd875 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -6,6 +6,13 @@ on:
   pull_request:
     branches: [main]
 
+
+env:
+  FORCE_COLOR: "1" # Make tools pretty.
+  TOX_TESTENV_PASSENV: FORCE_COLOR
+  PIP_DISABLE_PIP_VERSION_CHECK: "1"
+  PIP_NO_PYTHON_VERSION_WARNING: "1"
+
 jobs:
   code-checks:
     runs-on: ubuntu-latest
@@ -14,16 +21,16 @@ jobs:
         python-version: ["3.8", "3.9", "3.10", "3.11"]
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
 
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python-version }}
 
       - name: Install dependencies
         run: |
-          pip install tox tox-gh-actions
+          python -Im pip install tox tox-gh-actions
 
       - name: Run tests
         run: |
@@ -36,10 +43,10 @@ jobs:
         working-directory: ./ui
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
 
       - name: Set up Node.js 18
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
           node-version: "18"