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