Skip to content

Commit

Permalink
Create linters.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Snuffy2 committed Dec 15, 2024
1 parent 37ca4f6 commit 57fb696
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Linters

on:
pull_request:
push:
branches: [main]
workflow_dispatch:

jobs:
linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install requirements
run: pip install -r requirements.txt
- name: Install mypy types
run: mypy --install-types --non-interactive
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
- name: Run pre-commit.ci
uses: pre-commit-ci/lite-action@v1.1.0
if: always()
- name: Run mypy
run: mypy "./custom_components/opnsense/"

0 comments on commit 57fb696

Please sign in to comment.