Skip to content

Merge pull request #493 from MatthiasValvekens/dependabot/github_acti… #433

Merge pull request #493 from MatthiasValvekens/dependabot/github_acti…

Merge pull request #493 from MatthiasValvekens/dependabot/github_acti… #433

name: Static analysis
on: ["push", "pull_request"]
permissions:
actions: read
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install --upgrade pip isort black
- name: Check import order
run: isort --profile black --line-length 80 --check pyhanko pyhanko_tests
- name: Run Black
run: black -S --line-length 80 --check pyhanko pyhanko_tests
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jpetrucciani/[email protected]
with:
path: pyhanko
requirements: "-e .[mypy] --config-settings editable_mode=strict"