From 3ef8774b6850dc8ae65ecc577a97ab3df4fb783e Mon Sep 17 00:00:00 2001 From: Matt Quinn Date: Fri, 19 Jul 2024 12:01:10 -0400 Subject: [PATCH] feat(workflow): document SENTRY_MYPY_PRE_PUSH env var (#1337) --- src/docs/workflow.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/docs/workflow.mdx b/src/docs/workflow.mdx index ff57970be4..96caaeb8d2 100644 --- a/src/docs/workflow.mdx +++ b/src/docs/workflow.mdx @@ -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`.