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