Skip to content

Add GitHub Actions workflow for linting with pre-commit - #85

Merged
MiXaiLL76 merged 2 commits into
mainfrom
ci/lint
Jul 28, 2026
Merged

Add GitHub Actions workflow for linting with pre-commit#85
MiXaiLL76 merged 2 commits into
mainfrom
ci/lint

Conversation

@Borda

@Borda Borda commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

This pull request adds a new GitHub Actions workflow to automate code formatting checks using pre-commit hooks. The workflow ensures that code style and formatting are validated automatically on every push to the main branch and on pull requests.

Continuous Integration / Linting:

  • Added a .github/workflows/linting.yml workflow that sets up Python, caches pre-commit environments, and runs pre-commit checks on pushes to main and all pull requests to enforce code formatting standards.

resolves #84

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions workflow to run the repository’s existing pre-commit hooks in CI, aiming to catch formatting/lint issues automatically on PRs and on pushes to main.

Changes:

  • Introduces .github/workflows/linting.yml workflow to run pre-commit on pull_request and push to main.
  • Sets up Python and adds caching for ~/.cache/pre-commit to speed up repeated runs.
  • Runs pre-commit via pre-commit/action@v3.0.1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/linting.yml Outdated
Comment thread .github/workflows/linting.yml Outdated
Comment thread .github/workflows/linting.yml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Borda
Borda requested a review from MiXaiLL76 July 26, 2026 18:46
@MiXaiLL76
MiXaiLL76 merged commit 2151dd3 into main Jul 28, 2026
12 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.

Add pre-commit.ci for automated code styling

3 participants