Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
feat(workflow): document SENTRY_MYPY_PRE_PUSH env var
Browse files Browse the repository at this point in the history
  • Loading branch information
mjq committed Jul 19, 2024
1 parent fcebf3d commit 655a6ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/docs/workflow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ We're slowly working to add typing to our Python codebase, using `mypy` to check
- Check that the file you're modifying is not on the exclude list from `pyproject.toml`. In other words, you need to opt-in the file for type checking to happen.

- To test types locally, you can run `mypy path/to/file` or just `mypy` to run against all files.

- To automatically run `mypy` during pre-push, export the `SENTRY_MYPY_PRE_PUSH` environment variable set to `1`.

0 comments on commit 655a6ba

Please sign in to comment.