Skip to content

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
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