summaryrefslogtreecommitdiffstats
path: root/.github/workflows/lint.yml
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-10-20 15:18:49 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2024-10-20 15:18:49 -0400
commit9fd83de059a9199827dfcfe4397051ec878cfea8 (patch)
tree677fd08c7b62b2baea8cb0ed41edcd01174072d5 /.github/workflows/lint.yml
parentAdd python 3.12 and 3.13 as supported versions (diff)
downloadlirc-9fd83de059a9199827dfcfe4397051ec878cfea8.zip
Update workflows, use ruff for linting, and drop EOL python versions
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r--.github/workflows/lint.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 0000000..ac32d61
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,25 @@
+name: Lint
+
+on: [push]
+
+jobs:
+ run-linters:
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Checkout source code
+ uses: actions/checkout@v4
+
+ - name: Set up Poetry
+ run: pipx install poetry==1.8.4
+
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: 3.13
+ cache: "poetry"
+
+ - name: Install Dependencies
+ run: poetry install --only=dev --only=lint
+
+ - name: Run linters
+ run: poetry run task lint