diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 640273b8..8c6f70a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,6 +4,7 @@ default_stages: [pre-commit] ci: autofix_prs: false autoupdate_schedule: quarterly + skip: [check-poetry, pyright, poetry-audit] repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0 @@ -74,10 +75,30 @@ repos: - mdformat-toc - mdformat-web - mdformat-wikilink + - repo: https://gitlab.com/smop/pre-commit-hooks + rev: df034f88cf92b394e6f00a78fa97a2aa4e270e60 # frozen: v1.0.0 + hooks: + - id: check-poetry - repo: https://github.com/pappasam/toml-sort rev: b9b6210da457c38122995e434b314f4c4a4a923e # frozen: v0.23.1 hooks: - id: toml-sort-fix + - repo: local + hooks: + - id: pyright + name: pyright + entry: pyright + language: system + types: [python] + pass_filenames: false + - id: poetry-audit + name: poetry-audit + entry: poetry + language: system + types: [toml] + pass_filenames: false + always_run: true + args: [audit, --json, --ignore-code=CVE-2019-8341] - repo: https://github.com/astral-sh/ruff-pre-commit rev: 718fbf5fa5fb8cbe6aeac32a863271695104cd5d # frozen: v0.6.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index 5ed4df65..8feddb4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ poetry-core = "^1.9.0" poetry-plugin-export = "^1.7.1" poetry-pre-commit-plugin = "^0.1.2" pre-commit = "^3.7" +pyright = "1.1.376" python = "~3.12" requests = "^2.32.3" toml-sort = "^0.23.1"