Skip to content

Conversation

@callumforrester
Copy link
Contributor

Fixes #233

- Add an option to the template to enable strict mode if pyright is selected as the type checker.
- Default to standard type checking, the user must actively select it
- Set config to strict if the user selects both pyright and strict mode (we do not support mypy strict mode)
- Modify tests, remove "manual" enabling of strict mode now the template can do it for us
Copy link
Contributor

@GDYendell GDYendell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me except one typo. I support the default behaviour change.

coretl
coretl previously approved these changes Mar 14, 2025
Update docs on strict mode with more explanation
of when to/not to use it. Include link in
template prompt.
Set the default state of the template to pyright with strict mode, the user must conciously disable it. This is in line with the recommended approach in the docs of using strict mode fro new projects if practical.
@callumforrester callumforrester merged commit 6efc60c into main Mar 25, 2025
12 checks passed
@callumforrester callumforrester deleted the 233-strict-typing branch March 25, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support pyright strict mode as an option in the answers

4 participants