Skip to content

Conversation

@safurrier
Copy link
Owner

Summary

Makes ruff and mypy catch more issues before they reach production.

Changes

Linting Rules

  • Added security checks (bandit), naming rules, and modern Python patterns
  • Catches inline imports and enforces proper import organization
  • Updated example code to use built-in types instead of typing module

Type Checking

  • Enabled mypy strict mode with all warnings
  • Catches untyped functions and missing return types

Project Setup

  • Init script now updates ruff config when creating new projects
  • Automatically sets the correct module name for import sorting

The pre-commit hooks now catch these issues automatically, so the main branch stays cleaner.

Makes ruff and mypy more opinionated to catch more issues early.
The init script now updates the module name in ruff config automatically.
@safurrier safurrier merged commit 176dc88 into main Jun 21, 2025
1 check passed
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