Skip to content

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Jan 15, 2025

  • assorted pre-commit hooks
  • ruff linter

Depends on #15 and #24.

You will have to enable pre-commit for this repository: Settings > GitHub_Apps.

Settings_GitHub_Apps

@AGrigis
Copy link
Contributor

AGrigis commented Jan 28, 2025

Add pre-commit in requirements.
We already use Git Actions.

@DimitriPapadopoulos
Copy link
Contributor Author

DimitriPapadopoulos commented Jan 28, 2025

You still need to enable the pre-commit app. It is not a GitHub action and not a requirement.

@DimitriPapadopoulos DimitriPapadopoulos force-pushed the pre-commit branch 4 times, most recently from 64ba371 to 9375035 Compare January 28, 2025 13:32
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review January 28, 2025 13:34
@DimitriPapadopoulos

This comment was marked as outdated.

@DimitriPapadopoulos DimitriPapadopoulos force-pushed the pre-commit branch 4 times, most recently from 2c96fd8 to b57760f Compare February 3, 2025 17:30
@DimitriPapadopoulos
Copy link
Contributor Author

The Python 3.13 CI failure is caused by python-cffi/cffi#24 as far as I can see.

@DimitriPapadopoulos
Copy link
Contributor Author

DimitriPapadopoulos commented Feb 4, 2025

Note that pre-commit.ci is available for open source repositories only:

https://github.com/marketplace/pre-commit-ci

@AGrigis
Copy link
Contributor

AGrigis commented Apr 9, 2025

It is a mix with PR#37.
Is it possible to create a PR only for pre-commit support?

@DimitriPapadopoulos
Copy link
Contributor Author

Right. I'll remove this for now:

      - id: ruff-format

@DimitriPapadopoulos
Copy link
Contributor Author

Removed anything not related to moving from .github/workflows/linters.yml to .pre-commit-config.yaml.

Rebased.

- name: Lint with Ruff
uses: astral-sh/ruff-action@v3
run: |
ruff check --output-format=github
Copy link
Contributor Author

@DimitriPapadopoulos DimitriPapadopoulos Apr 9, 2025

Choose a reason for hiding this comment

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

File .github/workflows/linters.yml is almost useless as it is, it just checks that installation remains possible.

@DimitriPapadopoulos DimitriPapadopoulos force-pushed the pre-commit branch 5 times, most recently from 769f561 to e9f4815 Compare April 9, 2025 10:13
- assorted pre-commit hooks
- add ruff linter as a pre-commit hook
- remove pycodestyle from GitHub Action
- trim trailing whitespace
- fix end of files
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