mirror of
https://github.com/entropia/paperless-asn-qr-codes.git
synced 2024-05-19 15:36:43 +00:00
Compare commits
2 commits
dd3b6b9b28
...
e51d579a83
Author | SHA1 | Date | |
---|---|---|---|
e51d579a83 | |||
d7d4500bf5 |
9
.github/workflows/lint.yaml
vendored
9
.github/workflows/lint.yaml
vendored
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue