Update and unpin black
It's stable now, so there shouldn't be too many changes
This commit is contained in:
parent
ca7c4df349
commit
1b298c0dbb
1
.github/workflows/python-lint.yml
vendored
1
.github/workflows/python-lint.yml
vendored
@ -16,7 +16,6 @@ jobs:
|
|||||||
- uses: psf/black@stable
|
- uses: psf/black@stable
|
||||||
with:
|
with:
|
||||||
src: "./maubot"
|
src: "./maubot"
|
||||||
version: "22.1.0"
|
|
||||||
- name: pre-commit
|
- name: pre-commit
|
||||||
run: |
|
run: |
|
||||||
pip install pre-commit
|
pip install pre-commit
|
||||||
|
@ -7,17 +7,14 @@ repos:
|
|||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
# TODO convert to use the upstream psf/black when
|
- repo: https://github.com/psf/black
|
||||||
# https://github.com/psf/black/issues/2493 gets fixed
|
rev: 22.3.0
|
||||||
- repo: local
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
name: black
|
language_version: python3
|
||||||
entry: black --check
|
files: ^maubot/.*\.pyi?$
|
||||||
language: system
|
|
||||||
files: ^maubot/.*\.py$
|
|
||||||
- repo: https://github.com/PyCQA/isort
|
- repo: https://github.com/PyCQA/isort
|
||||||
rev: 5.10.1
|
rev: 5.10.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
files: ^maubot/.*$
|
files: ^maubot/.*\.pyi$
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
pre-commit>=2.10.1,<3
|
pre-commit>=2.10.1,<3
|
||||||
isort>=5.10.1,<6
|
isort>=5.10.1,<6
|
||||||
black==22.1.0
|
black>=22.3.0,<22
|
||||||
|
@ -10,5 +10,4 @@ skip = ["maubot/management/frontend"]
|
|||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 99
|
line-length = 99
|
||||||
target-version = ["py38"]
|
target-version = ["py38"]
|
||||||
required-version = "22.1.0"
|
|
||||||
force-exclude = "maubot/management/frontend"
|
force-exclude = "maubot/management/frontend"
|
||||||
|
Loading…
Reference in New Issue
Block a user