From db7823a2e2222919ab3ec0f43d068714353b8edc Mon Sep 17 00:00:00 2001 From: Lev Date: Fri, 10 Dec 2021 12:31:44 +0300 Subject: [PATCH] chore(lint): Take hooks configs out so linting works without pre-commit too (#609) --- .pre-commit-config.yaml | 8 -------- .prettierignore | 1 + .shellcheckrc | 1 + setup.cfg | 9 +++++++++ 4 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 .prettierignore create mode 100644 .shellcheckrc create mode 100644 setup.cfg diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5fb06d93..8284289d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..abe1f008 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +installation/docker-compose-custom.yml diff --git a/.shellcheckrc b/.shellcheckrc new file mode 100644 index 00000000..8226afb6 --- /dev/null +++ b/.shellcheckrc @@ -0,0 +1 @@ +external-sources=true diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..2a22823c --- /dev/null +++ b/setup.cfg @@ -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