Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CodeQL advanced security and mypy #72

Merged
merged 5 commits into from
Jan 14, 2025
Merged

Add CodeQL advanced security and mypy #72

merged 5 commits into from
Jan 14, 2025

Conversation

Zeitsperre
Copy link

What kind of change does this PR introduce?

  • Adds a YAML workflow for CodeQL security checks
  • Adds a hook for vulture to find dead code
  • Adds a hook for mypy for dynamic type-checking with some small adjustments needed for type narrowing

Does this PR introduce a breaking change?

No.

Other information:

This PR adds mypy, which is a significant undertaking for most projects. I'd rather have this added by default and later disabled or progressively adopted, rather than never used. There are many good reasons to be using mypy, and security (by way of type checking and enhanced maintainability) is one reason.

Signed-off-by: Trevor James Smith <[email protected]>
Signed-off-by: Trevor James Smith <[email protected]>
Signed-off-by: Trevor James Smith <[email protected]>
Signed-off-by: Trevor James Smith <[email protected]>
@Zeitsperre Zeitsperre requested a review from RondeauG January 3, 2025 20:19
@Zeitsperre Zeitsperre self-assigned this Jan 3, 2025
Signed-off-by: Trevor James Smith <[email protected]>
@Zeitsperre Zeitsperre merged commit 36ea293 into main Jan 14, 2025
8 checks passed
@Zeitsperre Zeitsperre deleted the add-security branch January 14, 2025 18:40
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.

2 participants