Compare commits

..

3 commits

Author SHA1 Message Date
Marvin Gaube 080c16784c
Merge dd3b6b9b28 into 9d3aa8416b 2023-11-25 17:03:09 +00:00
Marvin Gaube dd3b6b9b28 fix: cleanup linting errors 2023-11-25 18:02:51 +01:00
Marvin Gaube 78c3041ce7 feat: add linting CI job 2023-11-25 18:02:36 +01:00
2 changed files with 17 additions and 10 deletions

View file

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

View file

@ -28,6 +28,13 @@ 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"
@ -40,11 +47,6 @@ paperless-asn-qr-codes = "paperless_asn_qr_codes.main:main"
source = "vcs"
[tool.hatch.envs.ci]
dependencies = [
"pylint",
"ruff",
]
[tool.hatch.envs.ci.scripts]
check = "ruff check paperless_asn_qr_codes"
lint = "pylint paperless_asn_qr_codes"
features = [
"dev"
]