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

Run pre-commit in lint ci and polish ci setup. #1712

Merged
merged 3 commits into from
May 28, 2023

Conversation

real-yfprojects
Copy link
Collaborator

Fixes #1709

Fix phonies in Makefile and run pre-commit for lint target.

Instead of running black, flake8 and ruff the lint phony now runs pre-commit which has these tools configured as hooks.

  • Makefile
Define common composite action for setting up pre-commit and python.
  • .github/actions/setup/action.yml

  • .github/workflows/test.yml

Update codecov/codecov-action used in test ci.

Updated to v3

  • .github/workflows/test.yml

Hofer-Julian
Hofer-Julian previously approved these changes May 19, 2023
Copy link
Collaborator

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

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

Looks like a nice improvement

.github/workflows/test.yml Outdated Show resolved Hide resolved
Instead of running black, flake8 and ruff the lint phony now runs pre-commit which has these tools configured as hooks.

* Makefile
* .github/actions/setup/action.yml

* .github/workflows/test.yml
Updated to v3

* .github/workflows/test.yml
@real-yfprojects real-yfprojects requested a review from m3nu May 21, 2023 11:27
@real-yfprojects real-yfprojects merged commit 5a3a7cf into borgbase:master May 28, 2023
@real-yfprojects real-yfprojects deleted the lint-ci branch May 28, 2023 15:42
@m3nu
Copy link
Contributor

m3nu commented May 28, 2023

Hey, missed this, but looks fine. 👍

DaffyTheDuck pushed a commit to DaffyTheDuck/vorta that referenced this pull request Jun 14, 2023
Fix phonies in Makefile and run pre-commit for lint target.
Instead of running black, flake8 and ruff the lint phony now runs pre-commit which has these tools configured as hooks.

* Makefile

Define common composite action for setting up pre-commit and python.

* .github/actions/setup/action.yml

* .github/workflows/test.yml

Update codecov/codecov-action used in test ci to v3.

* .github/workflows/test.yml
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.

DEV: Run pre-commit checks in ci.
3 participants