diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml index 7deb4c8..fc28bdb 100644 --- a/.github/workflows/python-lint.yml +++ b/.github/workflows/python-lint.yml @@ -16,7 +16,6 @@ jobs: - uses: psf/black@stable with: src: "./rss" - version: "22.1.0" - name: pre-commit run: | pip install pre-commit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a205c9..7f1b3e5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,17 +7,14 @@ repos: - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - # TODO convert to use the upstream psf/black when - # https://github.com/psf/black/issues/2493 gets fixed - - repo: local + - repo: https://github.com/psf/black + rev: 22.3.0 hooks: - id: black - name: black - entry: black --check - language: system - files: ^rss/.*\.py$ + language_version: python3 + files: ^rss/.*\.pyi?$ - repo: https://github.com/PyCQA/isort rev: 5.10.1 hooks: - id: isort - files: ^rss/.*$ + files: ^rss/.*\.pyi?$ diff --git a/pyproject.toml b/pyproject.toml index be9cdda..3e608c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,4 +9,3 @@ line_length = 99 [tool.black] line-length = 99 target-version = ["py38"] -required-version = "22.1.0"