fixup! feat: add linting CI job

This commit is contained in:
Jan Christian Grünhage 2023-11-26 00:06:23 +01:00
parent dd3b6b9b28
commit 0244dfbfae
Signed by: jcgruenhage
GPG key ID: EEC1170CE56FA2ED
2 changed files with 10 additions and 17 deletions

View file

@ -2,11 +2,7 @@
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
@ -14,7 +10,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: pipx install hatch
- run: hatch -e ci run ruff check paperless_asn_qr_codes
- run: hatch run ci:check
# temporary allow failures on pylint until we've fixed all issues
- run: hatch -e ci run pylint paperless_asn_qr_codes || exit 0
- run: hatch -e ci run black paperless_asn_qr_codes --check --diff
- run: hatch run ci:lint || exit 0

View file

@ -28,13 +28,6 @@ dependencies = [
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pylint",
"ruff",
"black",
]
[project.urls]
Documentation = "https://github.com/entropia/paperless-asn-qr-codes#readme"
Issues = "https://github.com/entropia/paperless-asn-qr-codes/issues"
@ -47,6 +40,11 @@ paperless-asn-qr-codes = "paperless_asn_qr_codes.main:main"
source = "vcs"
[tool.hatch.envs.ci]
features = [
"dev"
]
dependencies = [
"pylint",
"ruff",
]
[tool.hatch.envs.ci.scripts]
check = "ruff check paperless_asn_qr_codes"
lint = "pylint paperless_asn_qr_codes"