From d06defd8d7561d90ecbf7cfb4d5e4778a348e98e Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 26 Dec 2022 03:23:14 -0500 Subject: chore: replace flake8 with pylint, refactor, add pre-commit --- .pre-commit-config.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .pre-commit-config.yaml (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..ca42340 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +- repo: https://github.com/pycqa/isort + rev: 5.11.2 + hooks: + - id: isort + name: isort (python) + +- repo: local + hooks: + - id: pylint + name: pylint + entry: pylint + language: system + types: [python] + +- repo: https://github.com/pre-commit/mirrors-yapf + rev: "v0.32.0" # Use the sha / tag you want to point at + hooks: + - id: yapf + additional_dependencies: ["toml"] -- cgit v1.2.3