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 ruff linter to improve code quality and maintainability #48

Merged
merged 4 commits into from
Nov 9, 2024

Conversation

derek10cloud
Copy link
Collaborator

@derek10cloud derek10cloud commented Nov 9, 2024

Description

Adding linting aims to improve code quality and streamline reviews, making it easier for contributors to understand and maintain the codebase. I chose ruff due to its performance and comprehensive rule set that aligns with our project’s needs, making it a suitable choice over other linters. (https://realpython.com/ruff-python/)

Fixes #

Checklist

Please make sure that the following criteria are met:

  • The PR title is descriptive.
  • For example stacks, I have included a descriptive README.md in the example project directory, which describes the stack and includes instructions to deploy or test.
  • For example stacks, add your stack to the website template library at website/docs/template-library/.. which gets published to stackql-deploy.io (optional)
  • I have ⭐'ed the stackql and stackql-deploy repos.

Additional Notes

Currently, lint checks are run with ruff check . and tests require commands like pip install -e . for setup. In a future PR, I plan to simplify these with make lint and make test commands, enabling contributors to lint and test code more consistently. Feedback is welcome, especially if you think additional linters like flake8 should also be considered.

@jeffreyaven jeffreyaven merged commit d50e1c7 into stackql:main Nov 9, 2024
3 checks 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