2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-05-31 15:50:47 +00:00

chore(lint): Take hooks configs out so linting works without pre-commit too (#609)

This commit is contained in:
Lev 2021-12-10 12:31:44 +03:00 committed by GitHub
parent 3171f212ab
commit db7823a2e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 8 deletions

View File

@ -20,24 +20,16 @@ repos:
rev: 5.10.1
hooks:
- id: isort
args: [
-o, # KNOWN_THIRD_PARTY
frappe,
--profile,
black,
]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
exclude: installation/docker-compose-custom.yml
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
exclude: "build/bench/Dockerfile"
- repo: local
hooks:

1
.prettierignore Normal file
View File

@ -0,0 +1 @@
installation/docker-compose-custom.yml

1
.shellcheckrc Normal file
View File

@ -0,0 +1 @@
external-sources=true

9
setup.cfg Normal file
View File

@ -0,0 +1,9 @@
# Config file for isort, codespell and other Python projects.
# In this case it is not used for packaging.
[isort]
profile = black
known_third_party = frappe
[codespell]
skip = build/bench/Dockerfile