From 9a306256cc50a2950e5f6065454c568bd09c9451 Mon Sep 17 00:00:00 2001 From: Jac Fitzgerald Date: Mon, 16 Nov 2026 11:53:54 -0800 Subject: [PATCH] Match dev guide mypy command to CI Add --implicit-optional and samples so the checklist and pre-commit hook run the same mypy command as meta-checks.yml on development. Co-Authored-By: Claude Sonnet 5.5 --- docs/dev-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/dev-guide.md b/docs/dev-guide.md index 7109d557a..4584fefa1 100644 --- a/docs/dev-guide.md +++ b/docs/dev-guide.md @@ -72,7 +72,7 @@ Here's a quick checklist to follow when coding to ensure a good pull request issues before submitting your pull request. (Run black with the `--check` option if you want to check whether formatting is valid without changing any files.) - Ensure the Mypy static type checker is still passing by running - `mypy --show-error-codes --disable-error-code misc --disable-error-code import tableauserverclient test`. + `mypy --show-error-codes --disable-error-code misc --disable-error-code import --implicit-optional tableauserverclient test samples`. - Keep commit messages clean and descriptive. ### Use git pre-commit hook @@ -100,7 +100,7 @@ then echo Running black format check black --check --line-length 120 tableauserverclient samples test echo Running mypy type checking - mypy --show-error-codes --disable-error-code misc --disable-error-code import tableauserverclient test + mypy --show-error-codes --disable-error-code misc --disable-error-code import --implicit-optional tableauserverclient test samples fi ```