ignore upgrades dir in linters and formatters and precommit (#1783)

This commit is contained in:
dni ⚡ 2023-06-26 10:38:40 +02:00 committed by GitHub
parent be7c589722
commit 9a0878de19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
exclude: '^lnbits/static/bundle.*|^docs/.*|^lnbits/static/vendor/.*|^lnbits/extensions/.*|^lnbits/wallets/lnd_grpc_files/.*|^package-lock.json$'
exclude: '^lnbits/static/bundle.*|^docs/.*|^lnbits/static/vendor/.*|^lnbits/extensions/.*|^lnbits/upgrades/.*|^lnbits/wallets/lnd_grpc_files/.*|^package-lock.json$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks

View File

@ -6,6 +6,7 @@
*.yml
**/lnbits/extensions/*
**/lnbits/upgrades/*
**/lnbits/static/vendor
**/lnbits/static/bundle.*

View File

@ -66,6 +66,7 @@ include = [
exclude = [
"lnbits/wallets/lnd_grpc_files",
"lnbits/extensions",
"lnbits/upgrades",
]
[tool.mypy]
@ -128,6 +129,7 @@ enable = [
[tool.pylint.MASTER]
ignore-paths = [
"^lnbits/extensions/.*$",
"^lnbits/upgrades/.*$",
"^lnbits/wallets/lnd_grpc_files/.*$",
]
fail-under = 10.0