Skip to content

Commit 89a50bf

Browse files
committed
Added a minor comment on mypy to dev guide
1 parent aaee012 commit 89a50bf

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CONTRIBUTE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Please make sure the tests pass and the code is linted before submitting a pull
5252
pip install pre-commit
5353
pre-commit install
5454
```
55-
55+
^
5656
This should now automatically reject commits that do not pass the linting and formatting checks.
5757

5858
You may run our tests locally with:
@@ -62,6 +62,12 @@ pip install .[dev,test]
6262
pytest
6363
```
6464

65+
Further if you want to make sure that the types are correct, you can run:
66+
```bash
67+
cd backend
68+
mypy beets_flask
69+
```
70+
6571
## Additional Resources
6672

6773
See also [Resources.md](./RESOURCES.md) for some background information and design choices.

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pythonpath = ["."]
8484
omit = ["*/tests/*"]
8585

8686
[tool.mypy]
87-
check_untyped_defs = false
87+
check_untyped_defs = true
8888

8989
[[tool.mypy.overrides]]
9090
# Suppresses error messages about imports that cannot be resolved.

0 commit comments

Comments
 (0)