Skip to content

Commit

Permalink
ci: add pyright and ComPWA/meta pre-commit hooks (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Mar 29, 2021
1 parent 359f47c commit 18c67cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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).

Expand Down

0 comments on commit 18c67cd

Please sign in to comment.