diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml new file mode 100644 index 0000000..0fcfba5 --- /dev/null +++ b/.github/workflows/static_analysis.yml @@ -0,0 +1,17 @@ +name: static analysis +on: + push: + pull_request: + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.11 + - name: Lint + uses: pre-commit/action@v3.0.0 + with: + extra_args: --all-files --show-diff-on-failure diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b0bad5..ff85098 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,12 +5,11 @@ repos: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace -- repo: https://github.com/psf/black - rev: 22.10.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 23.11.0 hooks: - id: black - ci: autofix_commit_msg: | [pre-commit.ci] auto fixes from pre-commit.com hooks