mirror of
https://github.com/entropia/paperless-asn-qr-codes.git
synced 2024-05-08 19:06:43 +00:00
feat: add linting CI job
This commit is contained in:
parent
9d3aa8416b
commit
d7d4500bf5
15
.github/workflows/lint.yaml
vendored
Normal file
15
.github/workflows/lint.yaml
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
name: Lint
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: pipx install hatch
|
||||
- run: hatch run ci:check
|
||||
# temporary allow failures on pylint until we've fixed all issues
|
||||
- run: hatch run ci:lint || exit 0
|
|
@ -38,3 +38,13 @@ paperless-asn-qr-codes = "paperless_asn_qr_codes.main:main"
|
|||
|
||||
[tool.hatch.version]
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue