mirror of
https://github.com/entropia/paperless-asn-qr-codes.git
synced 2024-06-02 15:00:01 +00:00
Compare commits
3 commits
39117641bf
...
080c16784c
Author | SHA1 | Date | |
---|---|---|---|
080c16784c | |||
dd3b6b9b28 | |||
78c3041ce7 |
9
.github/workflows/lint.yaml
vendored
9
.github/workflows/lint.yaml
vendored
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
]
|
Loading…
Reference in a new issue