Compare commits

..

2 commits

Author SHA1 Message Date
Marvin Gaube e51d579a83 fix: cleanup linting errors 2023-12-09 12:01:56 +01:00
Marvin Gaube d7d4500bf5 feat: add linting CI job 2023-12-09 12:01:52 +01:00
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"