From b6efa87b8199caeaaef8943db4a1bc6efaa3fd7a Mon Sep 17 00:00:00 2001 From: wurstsalat Date: Sun, 19 May 2024 16:22:47 +0200 Subject: [PATCH] ci: Add pre-commit-config --- .pre-commit-config.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..6f6dbd6 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,28 @@ +repos: + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.3.2 + hooks: + - id: ruff + + - repo: https://github.com/codespell-project/codespell + rev: v2.2.6 + hooks: + - id: codespell + pass_filenames: false + additional_dependencies: + - tomli + + - repo: https://github.com/RobertCraigie/pyright-python + rev: v1.1.361 + hooks: + - id: pyright + pass_filenames: false + additional_dependencies: + - nbxmpp @ git+https://dev.gajim.org/gajim/python-nbxmpp.git + - PyGObject-stubs @ git+https://github.com/pygobject/pygobject-stubs.git + stages: [manual] + + - repo: https://github.com/pycqa/isort + rev: 5.13.2 + hooks: + - id: isort