Skip to content

Commit

Permalink
chore: update cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
wpk committed Apr 26, 2023
1 parent 2b259af commit 7888b54
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,7 @@ module = []
[[tool.mypy.overrides]]
ignore_errors = true
module = []

[tool.pyright]
include = ["src", "tests"]
exclude = ["**/__pycache__", ".tox/**", "**/.mypy_cache"]

0 comments on commit 7888b54

Please sign in to comment.