-
Notifications
You must be signed in to change notification settings - Fork 1
[added] pipeline linter #61
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces automated code linting for the Django project by adding a GitHub Actions workflow. The workflow runs on pull requests to ensure code quality and consistency using the Ruff linter.
- Adds GitHub Actions workflow for automated linting on pull requests
- Configures Python 3.12 environment with Ruff linter
- Sets up basic linting pipeline to check entire codebase
.github/workflows/django-linter.yml
Outdated
|
|
||
| - name: Run linter | ||
| run: | | ||
| ruff check . |
Copilot
AI
Jul 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding configuration for Ruff's output format and failure behavior. Add '--output-format=github' for better CI integration and ensure the step fails on linting errors.
| ruff check . | |
| ruff check . --output-format=github |
.github/workflows/django-linter.yml
Outdated
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install ruff |
Copilot
AI
Jul 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider pinning the Ruff version to ensure consistent linting results across different environments and prevent potential issues from automatic updates.
| pip install ruff | |
| pip install ruff==0.0.285 |
No description provided.