You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ This is a modern Cookiecutter template that can be used to initiate a Python pro
15
15
-[Poetry](https://python-poetry.org/) for dependency management
16
16
- CI/CD with [GitHub Actions](https://github.com/features/actions)
17
17
- Pre-commit hooks with [pre-commit](https://pre-commit.com/)
18
-
- Code quality with [ruff](https://github.com/charliermarsh/ruff), [mypy](https://mypy.readthedocs.io/en/stable/), [deptry](https://github.com/fpgmaas/deptry/) and [prettier](https://prettier.io/)
18
+
- Code quality with [ruff](https://github.com/charliermarsh/ruff), [mypy](https://mypy.readthedocs.io/en/stable/) or [pyright](https://github.com/microsoft/pyright), [deptry](https://github.com/fpgmaas/deptry/) and [prettier](https://prettier.io/)
19
19
- Publishing to [PyPI](https://pypi.org) or [Artifactory](https://jfrog.com/artifactory) by creating a new release on GitHub
20
20
- Testing and coverage with [pytest](https://docs.pytest.org/en/7.1.x/) and [codecov](https://about.codecov.io/)
21
21
- Documentation with [MkDocs](https://www.mkdocs.org/)
Copy file name to clipboardExpand all lines: docs/features/linting.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,9 +64,13 @@ ignore = [
64
64
"tests/*" = ["S101"]
65
65
```
66
66
67
-
# mypy
67
+
# Typechecking
68
68
69
-
[mypy](https://mypy.readthedocs.io/en/stable/) is used for static type checking, and it's configuration and can be edited in `pyproject.toml`.
69
+
Two typechecking options are available, `mypy` or `pyright`.
70
+
71
+
## mypy
72
+
73
+
[mypy](https://mypy.readthedocs.io/en/stable/) can be used for static type checking, and its configuration and can be edited in `pyproject.toml`.
70
74
71
75
```toml
72
76
[tool.mypy]
@@ -84,9 +88,21 @@ exclude = [
84
88
]
85
89
```
86
90
91
+
## pyright
92
+
93
+
[pyright](https://github.com/microsoft/pyright) can be used for static type checking, and its configuration and can be edited in `pyproject.toml`:
94
+
95
+
```toml
96
+
[tool.pyright]
97
+
include = ['{{cookiecutter.project_slug}}']
98
+
typeCheckingMode = "strict"
99
+
venvPath = "."
100
+
venv = ".venv"
101
+
```
102
+
87
103
# deptry
88
104
89
-
[deptry](https://github.com/fpgmaas/deptry) is used to check the code for dependency issues, and it's configuration and can be edited in `pyproject.toml`.
105
+
[deptry](https://github.com/fpgmaas/deptry) is used to check the code for dependency issues, and its configuration and can be edited in `pyproject.toml`.
Copy file name to clipboardExpand all lines: docs/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ This is a modern Cookiecutter template that can be used to initiate a Python pro
20
20
-[Poetry](https://python-poetry.org/) for dependency management
21
21
- CI/CD with [GitHub Actions](https://github.com/features/actions)
22
22
- Pre-commit hooks with [pre-commit](https://pre-commit.com/)
23
-
- Code quality with [ruff](https://github.com/charliermarsh/ruff), [mypy](https://mypy.readthedocs.io/en/stable/), [deptry](https://github.com/fpgmaas/deptry/) and [prettier](https://prettier.io/)
23
+
- Code quality with [ruff](https://github.com/charliermarsh/ruff), [mypy](https://mypy.readthedocs.io/en/stable/) or [pyright](https://github.com/microsoft/pyright), [deptry](https://github.com/fpgmaas/deptry/) and [prettier](https://prettier.io/)
24
24
- Publishing to [PyPI](https://pypi.org) or [Artifactory](https://jfrog.com/artifactory) by creating a new release on GitHub
25
25
- Testing and coverage with [pytest](https://docs.pytest.org/en/7.1.x/) and [codecov](https://about.codecov.io/)
26
26
- Documentation with [MkDocs](https://www.mkdocs.org/)
0 commit comments