Skip to content

Merge pull request #5 from MatthiasValvekens/dependabot/github_action… #29

Merge pull request #5 from MatthiasValvekens/dependabot/github_action…

Merge pull request #5 from MatthiasValvekens/dependabot/github_action… #29

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