Browse Source

Update black and fix version in CI

Tulir Asokan 3 years ago
parent
commit
931ecee265
3 changed files with 4 additions and 3 deletions
  1. 2 1
      .github/workflows/python-lint.yml
  2. 1 1
      dev-requirements.txt
  3. 1 1
      pyproject.toml

+ 2 - 1
.github/workflows/python-lint.yml

@@ -13,9 +13,10 @@ jobs:
     - uses: isort/isort-action@master
       with:
         sortPaths: "./mausignald ./mautrix_signal"
-    - uses: psf/black@21.12b0
+    - uses: psf/black@stable
       with:
         src: "./mausignald ./mautrix_signal"
+        version: "22.1.0"
     - name: pre-commit
       run: |
         pip install pre-commit

+ 1 - 1
dev-requirements.txt

@@ -1,3 +1,3 @@
 pre-commit>=2.10.1,<3
 isort>=5.10.1,<6
-black==21.12b2
+black==22.1.0

+ 1 - 1
pyproject.toml

@@ -9,4 +9,4 @@ line_length = 99
 [tool.black]
 line-length = 99
 target-version = ["py38"]
-required-version = "21.12b0"
+required-version = "22.1.0"