feat: 👷 Add CI stuff and ruff and basedpyright#12
Conversation
8836288 to
51ecce8
Compare
63af9f8 to
51ecce8
Compare
There was a problem hiding this comment.
Pull request overview
This pull request adds CI/CD infrastructure using GitHub Actions and introduces Ruff as the formatter and linter for the codebase. The PR also applies formatting changes to existing Python source files to comply with the new Ruff configuration.
Changes:
- Added GitHub Actions workflows for automated quality checks (formatting and linting) on pushes and pull requests
- Integrated Ruff (v0.15.0) as a development dependency with comprehensive linting rules
- Applied code formatting (quote style, spacing, line endings) and added type hints across all cog files and the main entry point
- Constrained Python version to 3.13.x and updated lock file accordingly
Reviewed changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/CI.yml |
Main CI workflow that triggers on pushes/PRs to main branch |
.github/workflows/quality.yml |
Reusable workflow defining format and lint check jobs using Ruff |
.gitattributes |
Enforces LF line endings across all text files |
pyproject.toml |
Adds Ruff configuration, dev dependencies, and constrains Python to 3.13.x |
uv.lock |
Updates lock file to reflect Python version constraint and new dependencies (Ruff) |
src/__main__.py |
Applies formatting (double quotes, spacing) and adds return type hints |
src/cogs/slash_commands.py |
Adds return type hints to __init__ and setup functions |
src/cogs/message_commands.py |
Reformats strings to double quotes, fixes docstring style, and adds type hints |
src/cogs/user_commands.py |
Reformats code (spacing, trailing commas) and adds return type hints |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 10 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@jab416171 I've opened a new pull request, #13, to work on those changes. Once the pull request is ready, I'll request review from you. |
No description provided.