Skip to content

0.4.3 - Ruff Adoption & Developer Experience Upgrade

Choose a tag to compare

@wilfredinni wilfredinni released this 24 Jan 22:27
· 46 commits to main since this release
cada4b0

This pull request introduces several improvements and refactors across configuration, development tooling, documentation, and code quality. The most significant changes include switching from Flake8 to Ruff for linting, enhancing the project documentation for clarity, updating environment variable management, adding API versioning, and improving test and serializer robustness.

Development tooling and configuration:

  • Replaced Flake8 with Ruff for linting and formatting, including updates to .vscode/settings.json, .vscode/extensions.json, and removal of .flake8 config. The default Python formatter is now Ruff, and Flake8-related settings/extensions are removed.
  • Updated .env.example to group and clarify environment variables, add explicit database and Celery/Redis settings, and use variable expansion for DATABASE_URL.

Documentation and developer experience:

  • Major rewrite of .github/copilot-instructions.md for clearer, more structured onboarding: expanded explanations of architecture, development patterns, critical workflows, and configuration.

Code quality and robustness:

  • Improved error handling in user creation serializers by chaining exceptions (raise ... from e) for better tracebacks.
  • Made Faker an optional dependency for test data seeding, with a clear error message if not installed.

General code and test improvements:

  • Updated test URL reversals to use the correct namespaced patterns (e.g., v1:core:ping, v1:users:create, v1:users:knox_login).
  • Minor code cleanup and ordering in admin and form files for consistency.

These changes collectively improve maintainability, onboarding, and code quality for the project.


Full Changelog: 0.4.2...0.4.3