From d3bfac09287f8a0d223bbdd1ec1b562efd5c5b22 Mon Sep 17 00:00:00 2001 From: Dr-Blank <64108942+Dr-Blank@users.noreply.github.com> Date: Wed, 1 Nov 2023 20:28:57 -0400 Subject: [PATCH] add precommit config --- .pre-commit-config.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..d1a2afa --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,36 @@ +repos: + - repo: local + hooks: + - id: pylint + name: pylint + entry: pylint + language: system + types: [python] + args: [lrclib] + + - repo: local + hooks: + - id: black + name: black + entry: black + language: system + types: [python] + args: [--line-length=79, --preview] + + - repo: local + hooks: + - id: flake8 + name: flake8 + entry: flake8 + language: system + types: [python] + args: [--max-line-length=79] + + - repo: local + hooks: + - id: mypy + name: mypy + entry: mypy + language: system + types: [python] + args: [--ignore-missing-imports, --strict-optional, --warn-redundant-casts, --warn-unused-ignores, --warn-return-any, --warn-unreachable, --warn-unused-configs, --pretty] \ No newline at end of file