From 7888b54b2c2a7a62bf1ecabafd14400ffb4e31c5 Mon Sep 17 00:00:00 2001 From: wpk Date: Wed, 26 Apr 2023 14:20:03 -0400 Subject: [PATCH] chore: update cruft --- .cruft.json | 2 +- .pre-commit-config.yaml | 10 ++++++++++ Makefile | 3 +++ pyproject.toml | 4 ++++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.cruft.json b/.cruft.json index f98b10e..504fda9 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/wpk-nist-gov/cookiecutter-pypackage.git", - "commit": "949d3c741cdc547859d94b3eb5409a416dce046c", + "commit": "fcf4e71d8ed80af9445bb1d8fed755782f699d05", "checkout": "feature/markdown", "skip": [ "src/thermoextrap/__init__.py", diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f5de4db..2366eeb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -81,6 +81,16 @@ repos: types: [python] require_serial: true stages: [manual] + - id: pyright + name: pyright + entry: pyright + args: [] + language: system + pass_filenames: true + # additional_dependencies: [tox] + types: [python] + require_serial: true + stages: [manual] # isort, pyupgrade, flake8 defer to ruff - repo: https://github.com/PyCQA/isort rev: 5.12.0 diff --git a/Makefile b/Makefile index fbb42a0..6353ef0 100644 --- a/Makefile +++ b/Makefile @@ -91,6 +91,9 @@ pre-commit-lint-extra: ## run all extra linting (isort, flake8, pyupgrade, nbqa pre-commit-mypy: ## run mypy pre-commit run --all-files --hook-stage manual mypy +pre-commit-pyright: ## run pyright + pre-commit run --all-files --hook-stage manual pyright + pre-commit-codespell: ## run codespell. Note that this imports allowed words from docs/spelling_wordlist.txt pre-commit run --all-files --hook-stage manual codespell diff --git a/pyproject.toml b/pyproject.toml index 47ba9d1..94d6003 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -263,3 +263,7 @@ module = [] [[tool.mypy.overrides]] ignore_errors = true module = [] + +[tool.pyright] +include = ["src", "tests"] +exclude = ["**/__pycache__", ".tox/**", "**/.mypy_cache"]