Skip to content

Commit 34edb7c

Browse files
committed
Add pyright customization in .pyproject.toml
1 parent 3403949 commit 34edb7c

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
default_language_version:
2+
python: python
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.5.0
6+
hooks:
7+
- id: check-merge-conflict
8+
- id: debug-statements
9+
stages: [commit]
10+
- id: end-of-file-fixer
11+
stages: [commit]
12+
- repo: https://github.com/pycqa/isort
13+
rev: 5.13.2
14+
hooks:
15+
- id: isort
16+
stages: [commit]
17+
- repo: https://github.com/psf/black
18+
rev: 23.12.1
19+
hooks:
20+
- id: black
21+
language_version: python3
22+
stages: [commit]

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,10 @@ Downloads = "https://github.com/rocky/python-trepan3k/releases"
6767

6868
[tool.setuptools.dynamic]
6969
version = {attr = "trepan.version.__version__"}
70+
71+
[tool.pyright]
72+
include = ["trepan"]
73+
# exclude = []
74+
ignore = ["dist", "docs", "tmp", ".cache"]
75+
# defineConstant = { DEBUG = true }
76+
# stubPath = "src/stubs"

0 commit comments

Comments
 (0)