Subin Kim
ba4269e9c6
feat: Update pre-commit mirror script ( #53 )
...
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:
- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->
## Summary
<!-- What's the purpose of the change? What does it do, and why? -->
- `pre-commit-mirror-maker` is not suitable for generating multiple
hooks in single `.pre-commit-hooks.yaml` file.
- So replaced the script and github workflows.
## Test Plan
<!-- How was it tested? -->
- Update `pyproject.toml`'s `ruff==0.0.290` into `ruff==0.0.289`, and
run the script.
```sh
$ python3 mirror.py
...
```
2023-09-26 10:38:22 -05:00
Ali Hamdan
d87e2b0f73
Revert adding toml and jupyter ( #45 )
...
See
https://github.com/astral-sh/ruff-pre-commit/issues/44#issuecomment-1629510474
2023-07-10 15:03:43 -04:00
Ali Hamdan
89791c7aee
Add jupyter
and toml
file types ( #44 )
...
## Summary
Add `jupyter` to the file types that ruff pre-commit hook runs on
## Test Plan
This is what pre-commit uses to identify ".ipynb" files. See
dc75a76b7f/identify/extensions.py (L100)
Also black does this
https://github.com/psf/black/blob/main/.pre-commit-hooks.yaml
Fixes #43
2023-07-09 15:37:19 -04:00
Charlie Marsh
0afdbd1c79
Add issue and PR templates ( #41 )
2023-06-16 22:17:26 -04:00
konstin
56d5440fd2
Add script that updates the version in the README ( #39 )
2023-05-24 16:06:23 -04:00
Jonathan Plasse
6a0ba18549
Add check to entry ( #32 )
2023-03-02 10:24:35 -05:00
Mathieu Kniewallner
514931592b
feat: set --force-exclude
in pre-commit-mirror
command ( #23 )
...
https://github.com/charliermarsh/ruff-pre-commit/pull/20 added the flag in pre-commit configuration, but since the source of truth is `pre-commit-mirror` command in the CI workflow, it is replaced by `ruff`, as can be shown in 380e8f2639
.
2023-01-21 17:46:31 -05:00
Charlie Marsh
02ec0f1838
Sleep when coming from repository_dispatch
2023-01-18 20:56:59 -05:00
Charlie Marsh
b0a6088322
Set pre-commit options via pre-commit-mirror CLI ( #15 )
...
This was done incorrectly in #9 and #10 .
2023-01-16 13:11:00 -05:00
Paul Barrett
37d0b1fbf6
Add repository_dispatch trigger for mirror update ( #18 )
2023-01-16 11:24:33 -05:00
Charlie Marsh
4803a6e6b2
Run sync job every four hours ( #14 )
2022-12-22 10:48:39 -05:00
Charlie Marsh
48af87ed07
Tweak pre-commit-mirror invocation
2022-10-27 17:17:29 -04:00
Charlie Marsh
c9c9fc5b49
Remove deprecated lint task ( #5 )
2022-10-27 17:15:16 -04:00
Trevor Gross
301fe68ff7
Deprecate hook name lint
; add hook name ruff
( #4 )
2022-10-27 17:05:41 -04:00
Charlie Marsh
f3c3160746
Disable --fix by default; rename to lint
2022-10-12 11:14:49 -04:00
fsouza
d6a5d784b9
Setup automation with pre-commit-mirror-maker ( #1 )
2022-10-12 10:02:03 -04:00