From 18c67cd543076ae5a46b09b026cfa11672c883ef Mon Sep 17 00:00:00 2001 From: Remco de Boer Date: Mon, 29 Mar 2021 10:18:45 +0200 Subject: [PATCH] ci: add pyright and ComPWA/meta pre-commit hooks (#78) --- .github/workflows/ci.yml | 3 --- .pre-commit-config.yaml | 10 ++++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6f2faca..ea2a5287 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,8 +42,5 @@ jobs: python -m pip install --upgrade pip pip install -r reqs/3.7/requirements-sty.txt pip install . - sudo npm install -g pyright - name: Perform style checks run: pre-commit run -a - - name: Run pyright - run: pyright diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a9087b71..3f682ece 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,6 +25,11 @@ repos: - id: mixed-line-ending - id: trailing-whitespace + - repo: https://github.com/ComPWA/meta + rev: 0.0.1 + hooks: + - id: fix-nbformat-version + - repo: https://github.com/ComPWA/mirrors-cspell rev: v5.3.9 hooks: @@ -41,6 +46,11 @@ repos: - id: prettier language_version: 12.18.2 # prettier does not specify node correctly + - repo: https://github.com/ComPWA/mirrors-pyright + rev: v1.1.126 + hooks: + - id: pyright + # The following tools have to be install locally, because they can also be # used by code editors (e.g. linting and format-on-save).