Compare commits

...

436 Commits

Author SHA1 Message Date
charliermarsh
9aeda5d1f4 Mirror: 0.11.13
Some checks failed
main / main (push) Failing after 4s
2025-06-05 21:05:24 +00:00
charliermarsh
d19233b897 Mirror: 0.11.12 2025-05-29 13:37:20 +00:00
charliermarsh
76e47323a8 Mirror: 0.11.11 2025-05-22 19:25:38 +00:00
charliermarsh
12753357c0 Mirror: 0.11.10 2025-05-15 14:15:07 +00:00
Adam Turner
39f54b73c7
Add and prefer the ruff-check pre-commit ID (#124)
## Summary

Towards #123. Introduces the `ruff-check` pre-commit hook ID, updates
documentation to prefer it, but retains the `ruff` ID for compatibility.
2025-05-13 18:46:04 +05:30
charliermarsh
24e02b24b8 Mirror: 0.11.9 2025-05-09 16:25:33 +00:00
charliermarsh
f0fe93c067 Mirror: 0.11.8 2025-05-01 14:58:49 +00:00
charliermarsh
e84319e627 Mirror: 0.11.7 2025-04-24 18:55:43 +00:00
charliermarsh
d119aaff68 Mirror: 0.11.6 2025-04-17 13:41:32 +00:00
charliermarsh
8304991d8f Mirror: 0.11.5 2025-04-10 17:19:14 +00:00
charliermarsh
9719235819 Mirror: 0.11.4 2025-04-04 18:30:03 +00:00
charliermarsh
716f3372a2 Mirror: 0.11.3 2025-04-03 13:25:45 +00:00
charliermarsh
25a8c8da6c Mirror: 0.11.2 2025-03-21 13:36:56 +00:00
charliermarsh
03d1860500 Mirror: 0.11.1 2025-03-20 15:19:35 +00:00
Zanie Blue
87c3371eb1
Add write permissions to CI workflow (#118)
See https://github.com/astral-sh/uv-pre-commit/issues/44
2025-03-18 18:07:34 -05:00
charliermarsh
99abe27a5a Mirror: 0.11.0 2025-03-14 13:58:05 +00:00
charliermarsh
2b7436a2b1 Mirror: 0.10.0 2025-03-13 18:43:38 +00:00
charliermarsh
41d2daf392 Mirror: 0.9.10 2025-03-07 15:33:19 +00:00
charliermarsh
2c8dce6094 Mirror: 0.9.9 2025-02-28 10:22:43 +00:00
charliermarsh
f78b4d43a4 Mirror: 0.9.8 2025-02-27 14:16:08 +00:00
charliermarsh
efa716b1aa Mirror: 0.9.7 2025-02-20 13:52:04 +00:00
charliermarsh
895ebb3898 Mirror: 0.9.6 2025-02-10 13:05:01 +00:00
charliermarsh
d7f0995508 Mirror: 0.9.5 2025-02-06 19:52:38 +00:00
charliermarsh
871f3bcae4 Mirror: 0.9.4 2025-01-30 18:14:53 +00:00
charliermarsh
36b36942c5 Mirror: 0.9.3 2025-01-23 19:34:23 +00:00
charliermarsh
73413df07b Mirror: 0.9.2 2025-01-16 15:51:58 +00:00
charliermarsh
18ba2d02dc Mirror: 0.9.1 2025-01-10 19:03:15 +00:00
charliermarsh
8d1fdcef55 Mirror: 0.9.0 2025-01-09 14:13:07 +00:00
charliermarsh
89c421dff2 Mirror: 0.8.6 2025-01-04 12:28:02 +00:00
charliermarsh
751b8b57ba Mirror: 0.8.5 2025-01-02 12:09:30 +00:00
Calum Young
6299d2ca23
Update mirror.py to a uv script (#110)
<!--
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

From my reading of the [UV
docs](https://docs.astral.sh/uv/guides/scripts/), `mirror.py` would be a
good example of a standalone script. This PR updates `mirror.py` and the
`main.yml` workflow to be a UV script and makes use of UV in the update
process.

## Test Plan

- Update the uv version (currently 0.8.4) to an older version e.g. 0.8.3
in both `pyproject.toml` and `README.md`
- Run `uv run --no-project mirror.py` to check the update process still
works as expected
2024-12-30 10:48:39 -05:00
charliermarsh
f0b5944bef Mirror: 0.8.4 2024-12-19 13:41:32 +00:00
charliermarsh
fc6ef5d0dd Mirror: 0.8.3 2024-12-12 15:22:54 +00:00
charliermarsh
8b76f04e7e Mirror: 0.8.2 2024-12-05 12:54:12 +00:00
charliermarsh
859e42ab7d Mirror: 0.8.1 2024-11-29 03:34:49 +00:00
charliermarsh
0710b94280 Mirror: 0.8.0 2024-11-22 10:13:07 +00:00
charliermarsh
cafecb2f68 Mirror: 0.7.4 2024-11-15 11:38:19 +00:00
charliermarsh
6a19e69c83 Mirror: 0.7.3 2024-11-08 11:27:35 +00:00
charliermarsh
52c175db9e Mirror: 0.7.2 2024-11-01 16:07:37 +00:00
charliermarsh
4edcbde74a Mirror: 0.7.1 2024-10-24 15:45:46 +00:00
charliermarsh
8983acb92e Mirror: 0.7.0 2024-10-17 19:36:30 +00:00
charliermarsh
75b98813cf Mirror: 0.6.9 2024-10-04 13:44:36 +00:00
Ruwen Frick
46cdcac1de
Update readme config examples to work with pre-commit >= 3 (#99)
Co-authored-by: Ruwen Frick <ruwen.frick@ost.ch>
2024-09-27 08:49:08 +02:00
charliermarsh
cc915bbf18 Mirror: 0.6.8 2024-09-26 12:31:46 +00:00
charliermarsh
9f089bd3b7 Mirror: 0.6.7 2024-09-21 17:40:11 +00:00
charliermarsh
ef9b09598d Mirror: 0.6.6 2024-09-20 03:32:30 +00:00
charliermarsh
79f422bd92 Mirror: 0.6.5 2024-09-13 15:04:15 +00:00
charliermarsh
03d82ba032 Mirror: 0.6.4 2024-09-05 15:55:58 +00:00
charliermarsh
f1ebc5730d Mirror: 0.6.3 2024-08-29 15:20:51 +00:00
charliermarsh
24d039e647 Mirror: 0.6.2 2024-08-22 13:51:31 +00:00
charliermarsh
8b5112a3b2 Mirror: 0.6.1 2024-08-16 17:09:07 +00:00
Henry Schreiner
20d9ac3f11
Check Jupyter notebooks by default, in sync with 0.6.0 (#96) 2024-08-15 17:25:51 +01:00
charliermarsh
718fbf5fa5 Mirror: 0.6.0 2024-08-15 12:39:51 +00:00
charliermarsh
ac97362543 Mirror: 0.5.7 2024-08-08 15:47:05 +00:00
charliermarsh
89fdf53fde Mirror: 0.5.6 2024-08-02 15:56:39 +00:00
charliermarsh
1ee2e38793 Mirror: 0.5.5 2024-07-25 15:08:16 +00:00
charliermarsh
cbaa26132c Mirror: 0.5.4 2024-07-20 18:06:32 +00:00
charliermarsh
34e6222063 Mirror: 0.5.3 2024-07-18 17:10:25 +00:00
charliermarsh
47533c0f59 Mirror: 0.5.2 2024-07-14 15:11:56 +00:00
charliermarsh
f6793c73d5 Mirror: 0.5.1 2024-07-05 13:30:45 +00:00
Jeppe Fihl-Pearson
987f9d7d01
Remove "v" from the Ruff version number in link to release notes (#92)
## Summary

Starting with version 0.5.0 of Ruff, the release/tag name doesn't have a
leading "v". This has broken the link to the release notes that get
added to the release notes for the pre-commit hook.

This fixes it by stripping any "v" from the version number string.

See #91.

## Test Plan

Tested in a bash shell:
```bash
bash-5.2$ TAG_NAME=v0.5.0
bash-5.2$ echo ${TAG_NAME/v}
0.5.0
```

Will otherwise have to be tested on the next Ruff release.
2024-06-28 07:32:17 -04:00
charliermarsh
1dc9eb131c Mirror: 0.5.0 2024-06-27 15:43:31 +00:00
charliermarsh
a5c7353d59 Mirror: 0.4.10 2024-06-20 17:44:01 +00:00
charliermarsh
02609a0003 Mirror: 0.4.9 2024-06-14 15:20:40 +00:00
charliermarsh
99e5311c54 Mirror: 0.4.8 2024-06-05 15:34:50 +00:00
charliermarsh
f428577948 Mirror: 0.4.7 2024-05-31 20:45:13 +00:00
charliermarsh
06206113ba Mirror: 0.4.6 2024-05-28 19:23:09 +00:00
charliermarsh
fc609d3ce5 Mirror: 0.4.5 2024-05-23 01:31:27 +00:00
charliermarsh
f8a3f8c471 Mirror: 0.4.4 2024-05-09 17:14:19 +00:00
charliermarsh
5559d0350d Mirror: 0.4.3 2024-05-03 23:04:06 +00:00
charliermarsh
596470fba2 Mirror: 0.4.2 2024-04-25 17:53:17 +00:00
charliermarsh
21d9bff1d6 Mirror: 0.4.1 2024-04-19 16:05:59 +00:00
charliermarsh
2ca3d774ce Mirror: 0.4.0 2024-04-18 19:52:15 +00:00
charliermarsh
e76e45000a Mirror: 0.3.7 2024-04-12 03:55:37 +00:00
charliermarsh
c0bff48397 Mirror: 0.3.6 2024-04-11 16:25:42 +00:00
CoderJoshDK
1e9839fabf
fix: correct release notes link (#84)
## Summary

I originally tested this functionality in `uv-pre-commit`. And that is
why when moving it over, I ended up copying the URL for that release. I
am sorry for all the broken code I have introduced. I feel so bad. I am
at least glad I realized before a new `ruff` release came out.
2024-04-05 00:45:38 -04:00
CoderJoshDK
2b6485a44b
fix: auto release on mirror updates (#83)
As mentioned in #82, there are issues with having a workflow triggered
by the work done by a different workflow. To keep the functionality of
the auto release workflow, the two files are being merged into one.

Closes #82
2024-04-03 20:39:03 -05:00
CoderJoshDK
4025f7f381
feat: use uv for package management (#77)
<!--
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

`uv` is great. So we should use it where we can. 

The cache had to be removed because the workflow breaks currently.
https://github.com/actions/setup-python/issues/822
When this is solved, caching can be brought back in.

## Test Plan

Ran workflow on my local repo.
2024-04-01 23:05:43 -05:00
charliermarsh
0ccbb5b794 Mirror: 0.3.5
Some checks failed
Releases / release (push) Failing after 11s
2024-04-01 17:37:36 +00:00
CoderJoshDK
53e3b33bd4
feat(workflow): auto release on tag creation (#81)
## Summary

Add a GitHub workflow for creating a new release, automatically, when a
new tag is created.

This solves #78. The code is very similar to the changes added in
https://github.com/astral-sh/uv-pre-commit/pull/6

The primary difference, is that the URL points to ruff and this one
checks for if the tag starts with a `v`, but it is optional. This lets
you change ruff versions to not have a `v` in the future. Although the
`mirror.py` will need to be updated.
Speaking of updates to `mirror.py`, I ran `ruff` on it and updated the
`subprocess` to raise an error on failure.

## Test Plan

Locally tested.
2024-03-30 19:17:08 -04:00
CoderJoshDK
6e85b5cd1f
chore: update information (#76)
## Summary

Changes proposed and introduced through:
https://github.com/astral-sh/uv-pre-commit/pull/1 ; are being fixed and
updated for this repo as well.
2024-03-22 17:46:59 -05:00
Github Actions
1986670a8c Mirror: 0.3.4 2024-03-21 19:22:29 +00:00
Github Actions
c22645f6b4 Mirror: 0.3.3 2024-03-15 18:07:19 +00:00
Github Actions
522df5be28 Mirror: 0.3.2 2024-03-09 00:51:59 +00:00
Github Actions
0431f238e5 Mirror: 0.3.1 2024-03-06 22:44:26 +00:00
Github Actions
0dd3437ad9 Mirror: 0.3.0 2024-02-29 15:21:41 +00:00
Github Actions
cc575a3e58 Mirror: 0.2.2 2024-02-17 22:40:20 +00:00
Github Actions
1bd02b3569 Mirror: 0.2.1 2024-02-05 22:30:15 +00:00
Github Actions
ae24203671 Mirror: 0.2.0 2024-02-01 23:23:14 +00:00
Github Actions
bbaf495f2d Mirror: 0.1.15 2024-01-29 23:07:14 +00:00
Github Actions
1d42195ebc Mirror: 0.1.14 2024-01-19 20:20:34 +00:00
Github Actions
abe8946973 Mirror: 0.1.13 2024-01-12 15:59:09 +00:00
Github Actions
0511de30af Mirror: 0.1.12 2024-01-11 22:51:26 +00:00
Github Actions
fbe77be689 Mirror: 0.1.11 2024-01-02 23:00:06 +00:00
Github Actions
10d650cb4b Mirror: 0.1.10 2024-01-02 18:23:47 +00:00
Github Actions
7bcc70ca47 Mirror: 0.1.9 2023-12-21 18:43:43 +00:00
Github Actions
d7c4946c7c Mirror: 0.1.8 2023-12-13 19:11:31 +00:00
Github Actions
a6ff26895e Mirror: 0.1.7 2023-12-04 21:55:57 +00:00
Github Actions
75d1925b52 Mirror: 0.1.6 2023-11-17 18:47:15 +00:00
Github Actions
3d440bd6c6 Mirror: 0.1.5 2023-11-08 23:12:19 +00:00
Charlie Marsh
f1ef5ac6b5
Update pre-commit documentation (#57)
I got some feedback on Mastodon that it wasn't clear how to use the
linter and formatter together in pre-commit.

This also removes `--exit-non-zero-on-fix`, since pre-commit already
exits if files are changed, and changes our recommendation to always put
the formatter after the linter, since if a previous tool ends up
committing changes, pre-commit should fail anyway.
2023-11-07 13:33:28 -05:00
Github Actions
3dacd83b1e Mirror: 0.1.4 2023-11-03 21:31:21 +00:00
Henry Schreiner
76536a3fe1
docs: remove alpha designation on ruff-format (#56)
I think this was old?
2023-10-27 15:28:12 -04:00
Github Actions
8a43105c59 Mirror: 0.1.3 2023-10-26 19:27:28 +00:00
Github Actions
00ca9a349a Mirror: 0.1.2 2023-10-24 15:54:57 +00:00
Github Actions
51ae37a780 Mirror: 0.1.1 2023-10-19 21:22:21 +00:00
Github Actions
382100c524 Mirror: 0.1.0 2023-10-16 19:41:47 +00:00
Github Actions
42f98979db Mirror: 0.0.292 2023-10-02 17:15:54 +00:00
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
Zanie Blue
146c621c9f Restore ruff-format hook (#52)
Deleted by automation in
55147f81dc
2023-09-22 14:07:08 -04:00
Github Actions
e5fa9aeaf1 Bump README.md version to 0.0.291 2023-09-22 17:58:28 +00:00
Github Actions
e6d90feffc Mirror: 0.0.291 2023-09-22 17:58:26 +00:00
Zanie Blue
6fcbf19c7c
Restore ruff-format hook (#52)
Deleted by automation in
55147f81dc
2023-09-15 17:08:19 -05:00
Github Actions
1b38aa0ddb Bump README.md version to 0.0.290 2023-09-15 21:21:01 +00:00
Github Actions
55147f81dc Mirror: 0.0.290 2023-09-15 21:21:00 +00:00
Github Actions
0b90c17c1a Bump README.md version to 0.0.289 2023-09-15 20:06:07 +00:00
Zanie Blue
277125742a
Bump version to 0.0.290; update required formatter revision (#51) 2023-09-15 14:37:18 -05:00
Zanie
5accf96811 Require main revision until next release of pre-commit 2023-09-12 15:54:47 -05:00
Zanie
25507cf2f9 Drop the revision from the formatter examples 2023-09-12 15:50:37 -05:00
Zanie Blue
caa92debff
Add alpha formatter support (#50) 2023-09-12 15:49:39 -05:00
Github Actions
9845d84394 Bump README.md version to 0.0.289 2023-09-12 16:43:37 +00:00
Github Actions
36c161038e Mirror: 0.0.289 2023-09-12 16:43:36 +00:00
Github Actions
2f86fcef83 Bump README.md version to 0.0.288 2023-09-11 17:08:33 +00:00
Github Actions
36d09b6e15 Mirror: 0.0.288 2023-09-11 17:08:31 +00:00
Github Actions
3a6d4075bf Bump README.md version to 0.0.287 2023-09-01 17:09:38 +00:00
Github Actions
47023bed2b Mirror: 0.0.287 2023-09-01 17:09:37 +00:00
Github Actions
294ccdf82a Bump README.md version to 0.0.286 2023-08-25 19:43:23 +00:00
Github Actions
cf997e2039 Mirror: 0.0.286 2023-08-25 19:43:22 +00:00
Github Actions
21ca293cbc Bump README.md version to 0.0.285 2023-08-17 21:18:18 +00:00
Github Actions
b9787ef94f Mirror: 0.0.285 2023-08-17 21:18:17 +00:00
Github Actions
9808e002ad Bump README.md version to 0.0.284 2023-08-09 19:04:51 +00:00
Github Actions
b9a5dc23ed Mirror: 0.0.284 2023-08-09 19:04:50 +00:00
Github Actions
a5b0cb4741 Bump README.md version to 0.0.283 2023-08-08 19:01:30 +00:00
Github Actions
24ae3f3414 Mirror: 0.0.283 2023-08-08 19:01:29 +00:00
Github Actions
6c0ceaccff Bump README.md version to 0.0.282 2023-08-01 13:58:09 +00:00
Github Actions
ade96e24aa Mirror: 0.0.282 2023-08-01 13:58:08 +00:00
Github Actions
2cdabd9873 Bump README.md version to 0.0.281 2023-07-31 18:21:55 +00:00
Github Actions
2b844a9c8b Mirror: 0.0.281 2023-07-31 18:21:54 +00:00
Github Actions
5997ecd133 Bump README.md version to 0.0.280 2023-07-22 03:51:25 +00:00
Github Actions
1c8d30bd03 Mirror: 0.0.280 2023-07-22 03:51:24 +00:00
Github Actions
c16fde55ad Bump README.md version to 0.0.279 2023-07-21 20:46:17 +00:00
Github Actions
b09212dc36 Mirror: 0.0.279 2023-07-21 20:46:16 +00:00
eggplants
da18a96f5b
Fix repo links (#46)
## Summary

I replaced `charliermarsh/ruff` with `astral-sh/ruff`.

## Test Plan

Check if the changed links are worked.
2023-07-13 10:59:29 -04:00
Github Actions
e2a2094fd1 Bump README.md version to 0.0.278 2023-07-12 17:41:21 +00:00
Github Actions
bbb75905dc Mirror: 0.0.278 2023-07-12 17:41:20 +00: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
Github Actions
a140cebced Bump README.md version to 0.0.277 2023-07-04 21:55:37 +00:00
Github Actions
95f113d634 Mirror: 0.0.277 2023-07-04 21:55:36 +00:00
Github Actions
b0e3596b76 Bump README.md version to 0.0.276 2023-07-03 18:34:50 +00:00
Github Actions
9f69b173ce Mirror: 0.0.276 2023-07-03 18:34:49 +00:00
Github Actions
bd40d9bdd1 Bump README.md version to 0.0.275 2023-06-22 20:21:38 +00:00
Github Actions
1ac904bbe4 Mirror: 0.0.275 2023-06-22 20:21:38 +00:00
Github Actions
770e3ceae2 Bump README.md version to 0.0.274 2023-06-21 04:01:45 +00:00
Github Actions
bfba38bcf2 Mirror: 0.0.274 2023-06-21 04:01:44 +00:00
Charlie Marsh
17c401c7cc
Update update_version.py 2023-06-20 16:40:23 -04:00
Charlie Marsh
026315ed3d
Update README.md 2023-06-20 16:39:19 -04:00
Charlie Marsh
ba0094c234
Update README.md 2023-06-20 16:38:36 -04:00
Github Actions
42ad6adf01 Bump README.md version to 0.0.273 2023-06-20 20:34:01 +00:00
Github Actions
ec6bc276b8 Mirror: 0.0.273 2023-06-20 20:34:00 +00:00
Charlie Marsh
0afdbd1c79
Add issue and PR templates (#41) 2023-06-16 22:17:26 -04:00
Charlie Marsh
8698dbc7cd
Add badges to README (#40) 2023-06-16 15:01:33 -04:00
Github Actions
ec8193bd58 Bump README.md version to 0.0.272 2023-06-08 03:22:37 +00:00
Github Actions
5bd2636577 Mirror: 0.0.272 2023-06-08 03:22:36 +00:00
Github Actions
d2acb90115 Bump README.md version to 0.0.271 2023-06-07 00:53:45 +00:00
Github Actions
fdea37e497 Mirror: 0.0.271 2023-06-07 00:53:45 +00:00
Github Actions
3da5cf99ae Bump README.md version to 0.0.270 2023-05-24 20:18:18 +00:00
konstin
56d5440fd2
Add script that updates the version in the README (#39) 2023-05-24 16:06:23 -04:00
Github Actions
14b59ee3b1 Mirror: 0.0.270 2023-05-24 20:05:59 +00:00
Charlie Marsh
b05164188e
Update README.md 2023-05-21 14:10:47 -04:00
Felipe Moreno
4520e4045e
Quotes around version in README yaml code block are not necessary (#38) 2023-05-20 11:07:05 -04:00
Charlie Marsh
7c149cf0b9 Bump version to 0.0.269 2023-05-18 17:50:10 -04:00
Github Actions
fbc96a6c25 Mirror: 0.0.269 2023-05-18 21:49:26 +00:00
Charlie Marsh
a486fba16b Bump version to 0.0.267 2023-05-12 16:18:11 -04:00
Github Actions
11c1d1d46c Mirror: 0.0.267 2023-05-12 20:16:34 +00:00
Charlie Marsh
8f86941f1e Bump version to 0.0.266 2023-05-12 14:20:08 -04:00
Github Actions
7cdf339482 Mirror: 0.0.266 2023-05-12 18:19:27 +00:00
Charlie Marsh
d121fa5899 Bump version to 0.0.265 2023-05-05 14:14:06 -04:00
Github Actions
26ceedc01e Mirror: 0.0.265 2023-05-05 18:13:33 +00:00
Charlie Marsh
9e466ccca3 Bump version to 0.0.264 2023-05-02 00:51:30 -07:00
Github Actions
aad2f97dee Mirror: 0.0.264 2023-05-02 07:50:34 +00:00
Charlie Marsh
a87a77eb94 Bump version to 0.0.263 2023-04-25 00:14:14 -06:00
Github Actions
2c3a89a6fd Mirror: 0.0.263 2023-04-25 06:13:58 +00:00
Github Actions
343c49ab88 Mirror: 0.0.262 2023-04-19 21:03:44 +00:00
Charlie Marsh
b04e21cf61 Revert update to .version 2023-04-19 17:03:22 -04:00
Henry Schreiner
bae101822d
chore: bump to Ruff 0.0.262 (#35) 2023-04-19 17:02:00 -04:00
Alberto Cerrone
fb3d722e81
docs: Update to latest mirror version (#34) 2023-04-14 08:46:04 -04:00
Github Actions
f6346ef27f Mirror: 0.0.261 2023-04-05 03:18:05 +00:00
Charlie Marsh
6a0efc1edf Touch up README 2023-04-03 19:20:44 -04:00
Github Actions
3c6d40da8d Mirror: 0.0.260 2023-03-29 21:20:05 +00:00
Github Actions
13eadaf3e8 Mirror: 0.0.259 2023-03-23 20:06:14 +00:00
Github Actions
05e717e4f6 Mirror: 0.0.258 2023-03-22 21:51:34 +00:00
Charlie Marsh
0f888cd9d4
Update README.md 2023-03-17 23:01:45 -04:00
Github Actions
e812d61e6e Mirror: 0.0.257 2023-03-18 02:57:12 +00:00
Github Actions
69d01574ee Mirror: 0.0.256 2023-03-15 03:57:02 +00:00
Github Actions
8dc355dcbe Mirror: 0.0.255 2023-03-13 19:12:05 +00:00
Github Actions
9db230353b Mirror: 0.0.254 2023-03-04 05:18:22 +00:00
Jonathan Plasse
6a0ba18549
Add check to entry (#32) 2023-03-02 10:24:35 -05:00
Eero Vaher
c8ba6a0b13
Add a note about recommended hook ordering (#31) 2023-03-01 14:37:50 -05:00
Github Actions
8cddec33c0 Mirror: 0.0.253 2023-02-27 17:57:11 +00:00
Github Actions
c9e6ab0c7a Mirror: 0.0.252 2023-02-22 20:21:37 +00:00
Github Actions
52dd739afa Mirror: 0.0.251 2023-02-21 23:40:32 +00:00
Github Actions
81c9dd5384 Mirror: 0.0.250 2023-02-21 21:09:21 +00:00
Github Actions
c59ff2e43b Mirror: 0.0.249 2023-02-20 19:08:05 +00:00
Github Actions
a794b11a96 Mirror: 0.0.248 2023-02-19 20:05:58 +00:00
Github Actions
8c0354fe90 Mirror: 0.0.247 2023-02-15 21:05:10 +00:00
Github Actions
8a02e520ef Mirror: 0.0.246 2023-02-13 04:06:14 +00:00
Charlie Marsh
2d99f9295f Capitalize Ruff 2023-02-12 19:02:50 -05:00
Hugo
9f84243c82
readme: indicate how enable/disable auto-fix (#26) 2023-02-12 19:01:57 -05:00
Github Actions
1591f358dc Mirror: 0.0.245 2023-02-11 04:31:10 +00:00
Github Actions
0a169f3ce7 Mirror: 0.0.244 2023-02-08 23:20:26 +00:00
Github Actions
657c9074f1 Mirror: 0.0.243 2023-02-07 03:01:44 +00:00
Github Actions
9560a1972e Mirror: 0.0.242 2023-02-06 22:11:38 +00:00
Charlie Marsh
90c3bb65f4
Update README.md 2023-02-03 21:43:17 -05:00
Github Actions
a82915bc2d Mirror: 0.0.241 2023-02-04 02:43:08 +00:00
Github Actions
6ba454799f Mirror: 0.0.240 2023-02-02 18:11:56 +00:00
Github Actions
0613495e88 Mirror: 0.0.239 2023-02-01 00:48:44 +00:00
Github Actions
2cdb49b068 Mirror: 0.0.238 2023-01-31 00:20:58 +00:00
Github Actions
edb89ee9e1 Mirror: 0.0.237 2023-01-28 20:06:02 +00:00
Github Actions
0cf5de2c7c Mirror: 0.0.236 2023-01-27 00:17:56 +00:00
Github Actions
94dd638548 Mirror: 0.0.235 2023-01-25 23:59:49 +00:00
Github Actions
b6da66599f Mirror: 0.0.234 2023-01-25 23:59:49 +00:00
Github Actions
29d304ed11 Mirror: 0.0.233 2023-01-24 20:05:58 +00:00
Github Actions
3a2abcf71c Mirror: 0.0.231 2023-01-24 01:38:56 +00:00
Github Actions
aa446bc4da Mirror: 0.0.230 2023-01-22 20:06:01 +00: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
Github Actions
380e8f2639 Mirror: 0.0.229 2023-01-21 19:31:49 +00:00
Hugo van Kemenade
88a2db201e
README: --force-exclude is already set (#21)
Re: https://github.com/charliermarsh/ruff-pre-commit/issues/19 / https://github.com/charliermarsh/ruff-pre-commit/pull/20

If I understand this is now always set, no need to include it in the README example.
2023-01-20 17:15:38 -05:00
Henry Schreiner
99c84d0468
feat: always add --no-force-exclude (#20)
Closes #19.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2023-01-20 14:23:42 -05:00
Github Actions
a34d15d78d Mirror: 0.0.228 2023-01-20 18:50:21 +00:00
Github Actions
e360af9e86 Mirror: 0.0.227 2023-01-20 08:06:50 +00:00
Github Actions
6aa52c1faa Mirror: 0.0.226 2023-01-19 02:37:17 +00:00
Charlie Marsh
02ec0f1838 Sleep when coming from repository_dispatch 2023-01-18 20:56:59 -05:00
Github Actions
8947c2c0a1 Mirror: 0.0.225 2023-01-18 05:49:33 +00:00
Github Actions
d21ecbf143 Mirror: 0.0.224 2023-01-17 05:11:01 +00: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
Github Actions
03f230aa49 Mirror: 0.0.223 2023-01-16 08:07:05 +00:00
Github Actions
1fd18c8bce Mirror: 0.0.222 2023-01-15 08:06:14 +00:00
Github Actions
f4d052ae75 Mirror: 0.0.221 2023-01-14 05:28:39 +00:00
Github Actions
69ca4c697b Mirror: 0.0.220 2023-01-13 00:24:10 +00:00
Github Actions
91ae702800 Mirror: 0.0.219 2023-01-12 08:06:43 +00:00
Github Actions
9a046441a9 Mirror: 0.0.218 2023-01-11 04:06:06 +00:00
Github Actions
e7fe3c1758 Mirror: 0.0.217 2023-01-10 08:06:49 +00:00
Github Actions
b7d7c83e4a Mirror: 0.0.216 2023-01-09 20:06:08 +00:00
Github Actions
379c9c7588 Mirror: 0.0.215 2023-01-08 08:05:56 +00:00
Github Actions
64a5530ea4 Mirror: 0.0.214 2023-01-08 00:25:16 +00:00
Github Actions
17f03398ae Mirror: 0.0.213 2023-01-07 08:06:03 +00:00
Github Actions
4d26077229 Mirror: 0.0.212 2023-01-06 04:06:11 +00:00
Github Actions
29c6a96c28 Mirror: 0.0.211 2023-01-05 08:06:34 +00:00
Github Actions
baa9cad82c Mirror: 0.0.210 2023-01-04 16:07:30 +00:00
Github Actions
fd50e8507a Mirror: 0.0.209 2023-01-03 16:06:18 +00:00
Github Actions
1bf8669d27 Mirror: 0.0.208 2023-01-03 05:01:46 +00:00
Github Actions
f44cdeaacd Mirror: 0.0.207 2023-01-03 00:22:10 +00:00
Github Actions
f8c0ef6663 Mirror: 0.0.206 2023-01-02 00:23:13 +00:00
Github Actions
19210b5d1f Mirror: 0.0.205 2022-12-31 20:05:39 +00:00
Github Actions
d3c4f88721 Mirror: 0.0.204 2022-12-31 15:23:21 +00:00
Github Actions
e48252e706 Mirror: 0.0.203 2022-12-31 00:21:48 +00:00
Github Actions
bebbffd7ed Mirror: 0.0.202 2022-12-30 16:06:27 +00:00
Github Actions
965d6d14cc Mirror: 0.0.201 2022-12-30 08:06:21 +00:00
Github Actions
eb4a22e056 Mirror: 0.0.200 2022-12-29 20:06:14 +00:00
Github Actions
bc91a833b8 Mirror: 0.0.199 2022-12-29 04:06:08 +00:00
Github Actions
c8889c58dc Mirror: 0.0.198 2022-12-28 04:06:07 +00:00
Github Actions
271d0c17b9 Mirror: 0.0.196 2022-12-27 20:06:00 +00:00
Github Actions
23ab53501e Mirror: 0.0.195 2022-12-27 04:06:27 +00:00
Github Actions
7f6683dabc Mirror: 0.0.194 2022-12-26 04:06:22 +00:00
Github Actions
b86f2fab79 Mirror: 0.0.193 2022-12-25 00:24:33 +00:00
Github Actions
4a91fdbcf7 Mirror: 0.0.192 2022-12-23 00:22:24 +00:00
Charlie Marsh
4803a6e6b2
Run sync job every four hours (#14) 2022-12-22 10:48:39 -05:00
Charlie Marsh
e898edf05c
Set force-exclude in docs (#13) 2022-12-22 10:47:35 -05:00
Github Actions
8873376169 Mirror: 0.0.191 2022-12-22 13:30:21 +00:00
Github Actions
7e962894dd Mirror: 0.0.190 2022-12-22 00:06:35 +00:00
Github Actions
9e4bffa3ea Mirror: 0.0.189 2022-12-20 19:04:32 +00:00
Github Actions
99b8051fec Mirror: 0.0.188 2022-12-19 22:25:07 +00:00
Github Actions
3156dc12ae Mirror: 0.0.187 2022-12-19 22:25:07 +00:00
Github Actions
ff2f775ddb Mirror: 0.0.186 2022-12-19 00:06:58 +00:00
Github Actions
a1dd52c75a Mirror: 0.0.185 2022-12-18 00:08:50 +00:00
Github Actions
090282139c Mirror: 0.0.184 2022-12-17 00:06:41 +00:00
Github Actions
cb5287829c Mirror: 0.0.183 2022-12-17 00:06:41 +00:00
Github Actions
456d797579 Mirror: 0.0.182 2022-12-16 00:06:30 +00:00
Github Actions
9566f686f8 Mirror: 0.0.181 2022-12-15 00:07:07 +00:00
Github Actions
648d96030a Mirror: 0.0.180 2022-12-15 00:07:07 +00:00
Github Actions
313c6cdbee Mirror: 0.0.178 2022-12-13 03:58:01 +00:00
Github Actions
380b7871ff Mirror: 0.0.177 2022-12-13 00:06:53 +00:00
Github Actions
6bf258ba87 Mirror: 0.0.176 2022-12-12 00:07:13 +00:00
Github Actions
4147a259e2 Mirror: 0.0.175 2022-12-12 00:07:13 +00:00
Github Actions
f5b1cc9e17 Mirror: 0.0.174 2022-12-11 00:08:32 +00:00
Github Actions
a307d8dccd Mirror: 0.0.173 2022-12-11 00:08:32 +00:00
Github Actions
35274748ff Mirror: 0.0.172 2022-12-10 00:07:17 +00:00
Github Actions
c0f4b19386 Mirror: 0.0.171 2022-12-10 00:07:17 +00:00
Github Actions
4c06a9e520 Mirror: 0.0.170 2022-12-09 00:07:32 +00:00
Github Actions
789b68ca9b Mirror: 0.0.169 2022-12-08 01:41:59 +00:00
Github Actions
59e7afc150 Mirror: 0.0.168 2022-12-08 00:07:37 +00:00
Github Actions
c06205404b Mirror: 0.0.167 2022-12-08 00:07:37 +00:00
Github Actions
8988889210 Mirror: 0.0.166 2022-12-07 00:07:17 +00:00
Github Actions
4b5fb23659 Mirror: 0.0.165 2022-12-06 05:43:19 +00:00
Github Actions
24e3e404f2 Mirror: 0.0.163 2022-12-06 05:38:09 +00:00
Github Actions
d6330564ad Mirror: 0.0.162 2022-12-06 05:38:09 +00:00
Github Actions
9845a553b8 Mirror: 0.0.161 2022-12-06 00:07:54 +00:00
Github Actions
3cb2db2dd8 Mirror: 0.0.160 2022-12-06 00:07:54 +00:00
Github Actions
2f620b6207 Mirror: 0.0.159 2022-12-06 00:07:54 +00:00
Github Actions
5e2d583d78 Mirror: 0.0.158 2022-12-05 03:00:12 +00:00
Github Actions
4253f1f550 Mirror: 0.0.157 2022-12-04 22:09:41 +00:00
Github Actions
39e510b43b Mirror: 0.0.156 2022-12-04 15:51:46 +00:00
Github Actions
3733c4e385 Mirror: 0.0.155 2022-12-04 15:51:46 +00:00
Github Actions
50fd4a42a4 Mirror: 0.0.154 2022-12-04 02:16:12 +00:00
Github Actions
4d2a2fdc41 Mirror: 0.0.153 2022-12-04 00:10:11 +00:00
Github Actions
d0a48c918a Mirror: 0.0.152 2022-12-03 00:06:25 +00:00
Github Actions
affc25d7c4 Mirror: 0.0.151 2022-12-03 00:06:25 +00:00
Charlie Marsh
bb75b59a85
Add require_serial: true (#10) 2022-12-02 12:46:28 -05:00
Charlie Marsh
f7845095c6
Add support for .pyi files (#9) 2022-12-02 12:45:51 -05:00
Charlie Marsh
b3300d9ad0 Run Prettier 2022-12-02 12:45:21 -05:00
Github Actions
6e4664a23d Mirror: 0.0.150 2022-12-01 21:56:45 +00:00
Github Actions
6ed527f160 Mirror: 0.0.149 2022-12-01 00:08:21 +00:00
Github Actions
26108c84b0 Mirror: 0.0.148 2022-12-01 00:08:21 +00:00
Github Actions
faab05110a Mirror: 0.0.146 2022-11-29 15:29:04 +00:00
Github Actions
9708a42857 Mirror: 0.0.145 2022-11-29 15:29:04 +00:00
Github Actions
05f8f5d51e Mirror: 0.0.144 2022-11-29 15:29:04 +00:00
Github Actions
9bb1cd1204 Mirror: 0.0.143 2022-11-29 00:53:31 +00:00
Github Actions
6c5009049b Mirror: 0.0.142 2022-11-29 00:53:31 +00:00
Github Actions
253612f324 Mirror: 0.0.141 2022-11-27 00:57:05 +00:00
Github Actions
95e09bbe9b Mirror: 0.0.140 2022-11-27 00:57:05 +00:00
Github Actions
74212953c4 Mirror: 0.0.139 2022-11-26 00:49:04 +00:00
Github Actions
2aa0ce8036 Mirror: 0.0.138 2022-11-26 00:49:04 +00:00
Github Actions
426206004d Mirror: 0.0.137 2022-11-24 02:10:42 +00:00
Github Actions
96c4bb9944 Mirror: 0.0.135 2022-11-24 00:57:36 +00:00
Github Actions
f38ae7c453 Mirror: 0.0.134 2022-11-22 22:53:00 +00:00
Github Actions
029271784f Mirror: 0.0.133 2022-11-22 00:59:05 +00:00
Github Actions
d513ee6d6d Mirror: 0.0.132 2022-11-20 23:54:02 +00:00
Github Actions
362031d79c Mirror: 0.0.131 2022-11-20 20:42:46 +00:00
Github Actions
12f56b078d Mirror: 0.0.130 2022-11-20 20:42:46 +00:00
Github Actions
74f34294f2 Mirror: 0.0.129 2022-11-20 20:42:46 +00:00
Github Actions
4a0046d515 Mirror: 0.0.128 2022-11-19 00:58:48 +00:00
Github Actions
7b467bc74c Mirror: 0.0.127 2022-11-18 19:04:54 +00:00
Github Actions
9ee15be98b Mirror: 0.0.126 2022-11-18 01:01:15 +00:00
Github Actions
08fdeb7351 Mirror: 0.0.125 2022-11-18 01:01:15 +00:00
Github Actions
9a9e64d35c Mirror: 0.0.124 2022-11-17 00:57:50 +00:00
Github Actions
287cdd5a51 Mirror: 0.0.123 2022-11-17 00:57:50 +00:00
Github Actions
14f1fabec9 Mirror: 0.0.122 2022-11-17 00:57:49 +00:00
Github Actions
debf101837 Mirror: 0.0.121 2022-11-16 00:58:19 +00:00
Github Actions
0f3b78adc5 Mirror: 0.0.120 2022-11-16 00:58:19 +00:00
Github Actions
bfbdcab8e8 Mirror: 0.0.119 2022-11-16 00:58:19 +00:00
Github Actions
9c1ac3dcf8 Mirror: 0.0.118 2022-11-15 00:58:01 +00:00
Github Actions
105f96238e Mirror: 0.0.117 2022-11-14 00:57:22 +00:00
Github Actions
3f64776d96 Mirror: 0.0.116 2022-11-14 00:57:22 +00:00
Github Actions
dad4a03885 Mirror: 0.0.114 2022-11-13 00:58:31 +00:00
Github Actions
e61c8f5535 Mirror: 0.0.113 2022-11-13 00:58:31 +00:00
Github Actions
7f2d781c26 Mirror: 0.0.112 2022-11-12 01:00:16 +00:00
Github Actions
96a08db858 Mirror: 0.0.111 2022-11-12 01:00:16 +00:00
Github Actions
4ea05fc4e4 Mirror: 0.0.110 2022-11-11 01:03:59 +00:00
Github Actions
7182becc8d Mirror: 0.0.109 2022-11-11 01:03:59 +00:00
Github Actions
cfc99395a2 Mirror: 0.0.108 2022-11-09 01:01:32 +00:00
Github Actions
f02d9bfe59 Mirror: 0.0.107 2022-11-09 01:01:32 +00:00
Charlie Marsh
5b486f1d38
Update README.md 2022-11-07 23:56:03 -05:00
Github Actions
94ee522cae Mirror: 0.0.106 2022-11-07 21:55:32 +00:00
Github Actions
bb87396b08 Mirror: 0.0.105 2022-11-07 21:55:32 +00:00
Github Actions
a2f1915bd7 Mirror: 0.0.104 2022-11-07 00:59:53 +00:00
Github Actions
b06ea0401b Mirror: 0.0.103 2022-11-06 01:01:27 +00:00
Github Actions
e9fb874d9a Mirror: 0.0.102 2022-11-06 01:01:27 +00:00
Github Actions
7712c96d70 Mirror: 0.0.100 2022-11-05 01:03:08 +00:00
Github Actions
0955a5efcf Mirror: 0.0.99 2022-11-04 01:04:33 +00:00
Github Actions
4f274e6881 Mirror: 0.0.98 2022-11-03 15:36:00 +00:00
Github Actions
58f9bd7a73 Mirror: 0.0.97 2022-11-03 15:36:00 +00:00
Github Actions
e145ea5ac8 Mirror: 0.0.96 2022-11-03 15:36:00 +00:00
Github Actions
9ac07e27c7 Mirror: 0.0.95 2022-11-03 01:03:04 +00:00
Github Actions
c2d999512b Mirror: 0.0.94 2022-11-02 01:09:22 +00:00
Github Actions
5ce8772a2c Mirror: 0.0.93 2022-11-01 01:15:34 +00:00
Github Actions
888bf46a89 Mirror: 0.0.92 2022-10-31 01:11:54 +00:00
Github Actions
9a83de9c14 Mirror: 0.0.91 2022-10-30 01:10:48 +00:00
Github Actions
9690b526dc Mirror: 0.0.90 2022-10-30 01:10:48 +00:00
Github Actions
4824769ace Mirror: 0.0.89 2022-10-30 01:10:48 +00:00
Github Actions
edc552015f Mirror: 0.0.88 2022-10-29 00:57:46 +00:00
Github Actions
04b6e6e82a Mirror: 0.0.86 2022-10-27 21:18:00 +00: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
Github Actions
1c077b20b0 Mirror: 0.0.85 2022-10-27 01:04:41 +00:00
Github Actions
c3fb7b9694 Mirror: 0.0.84 2022-10-27 01:04:41 +00:00
Github Actions
0584045f9c Mirror: 0.0.83 2022-10-26 16:08:12 +00:00
Github Actions
5759eb92be Mirror: 0.0.82 2022-10-22 01:15:31 +00:00
Github Actions
0489182c46 Mirror: 0.0.81 2022-10-19 01:14:09 +00:00
Github Actions
4ead656ead Mirror: 0.0.80 2022-10-18 01:13:16 +00:00
Github Actions
c51783f66a Mirror: 0.0.79 2022-10-18 01:13:16 +00:00
Github Actions
2fdf355f86 Mirror: 0.0.78 2022-10-18 01:13:16 +00:00
Github Actions
6c21374606 Mirror: 0.0.77 2022-10-17 01:23:23 +00:00
Github Actions
c30c609d90 Mirror: 0.0.76 2022-10-16 01:17:19 +00:00
Github Actions
f3269e9898 Mirror: 0.0.75 2022-10-15 01:14:00 +00:00
Github Actions
e413e40763 Mirror: 0.0.74 2022-10-15 01:14:00 +00:00
Github Actions
aa139ff210 Mirror: 0.0.73 2022-10-15 01:14:00 +00:00
Github Actions
c07fe1867f Mirror: 0.0.72 2022-10-14 01:20:46 +00:00
Github Actions
81501c0b55 Mirror: 0.0.71 2022-10-14 01:20:46 +00:00
Github Actions
9fca8c1ea1 Mirror: 0.0.70 2022-10-14 01:20:46 +00:00
Github Actions
09a34838da Mirror: 0.0.69 2022-10-12 15:16:21 +00:00
Github Actions
7e02bb6e58 Mirror: 0.0.68 2022-10-12 15:16:21 +00:00
Github Actions
635516a879 Mirror: 0.0.67 2022-10-12 15:16:21 +00:00
Github Actions
c7b6469113 Mirror: 0.0.66 2022-10-12 15:16:21 +00:00
Github Actions
b160a560b5 Mirror: 0.0.65 2022-10-12 15:16:21 +00:00
Github Actions
13c2dd3900 Mirror: 0.0.64 2022-10-12 15:16:21 +00:00
Github Actions
d390230cac Mirror: 0.0.63 2022-10-12 15:16:21 +00:00
Github Actions
e7d1200457 Mirror: 0.0.62 2022-10-12 15:16:21 +00:00
Github Actions
f92f874e53 Mirror: 0.0.61 2022-10-12 15:16:21 +00:00
Github Actions
1db6acee43 Mirror: 0.0.60 2022-10-12 15:16:21 +00:00
Github Actions
bcfdc86594 Mirror: 0.0.59 2022-10-12 15:16:21 +00:00
Github Actions
143ae1928b Mirror: 0.0.58 2022-10-12 15:16:21 +00:00
Github Actions
c6a3e65594 Mirror: 0.0.57 2022-10-12 15:16:21 +00:00
Github Actions
b8d8d7c2ed Mirror: 0.0.55 2022-10-12 15:16:21 +00:00
Github Actions
126c3b8643 Mirror: 0.0.54 2022-10-12 15:16:21 +00:00
Github Actions
b7864b9df0 Mirror: 0.0.53 2022-10-12 15:16:21 +00:00
Github Actions
ff61611bc1 Mirror: 0.0.52 2022-10-12 15:16:21 +00:00
Github Actions
ad207b3915 Mirror: 0.0.51 2022-10-12 15:16:21 +00:00
Github Actions
e4989904d6 Mirror: 0.0.50 2022-10-12 15:16:21 +00:00
Github Actions
a7d59f320f Mirror: 0.0.49 2022-10-12 15:16:21 +00:00
Github Actions
51cc73130c Mirror: 0.0.48 2022-10-12 15:16:21 +00:00
Github Actions
0d1691429e Mirror: 0.0.47 2022-10-12 15:16:21 +00:00
Github Actions
392c85ba2f Mirror: 0.0.46 2022-10-12 15:16:21 +00:00
Github Actions
9e0cd11cff Mirror: 0.0.45 2022-10-12 15:16:21 +00:00
Github Actions
790386360b Mirror: 0.0.44 2022-10-12 15:16:21 +00:00
Github Actions
f4c5b6d3d5 Mirror: 0.0.43 2022-10-12 15:16:21 +00:00
Github Actions
c90b3a6f80 Mirror: 0.0.42 2022-10-12 15:16:21 +00:00
Github Actions
e7c156ebd4 Mirror: 0.0.40 2022-10-12 15:16:21 +00:00
Github Actions
ec573b995c Mirror: 0.0.39 2022-10-12 15:16:21 +00:00
Github Actions
5722d4a400 Mirror: 0.0.37 2022-10-12 15:16:21 +00:00
Github Actions
0f5e62fb63 Mirror: 0.0.36 2022-10-12 15:16:21 +00:00
Github Actions
5c0d1109f3 Mirror: 0.0.35 2022-10-12 15:16:21 +00:00
Github Actions
c39effc638 Mirror: 0.0.34 2022-10-12 15:16:21 +00:00
Github Actions
b15e892001 Mirror: 0.0.33 2022-10-12 15:16:21 +00:00
Github Actions
4d7232e4c1 Mirror: 0.0.32 2022-10-12 15:16:21 +00:00
Github Actions
dc0624eeb9 Mirror: 0.0.31 2022-10-12 15:16:21 +00:00
Github Actions
4e8204443b Mirror: 0.0.30 2022-10-12 15:16:21 +00:00
Github Actions
e630a7962f Mirror: 0.0.29 2022-10-12 15:16:21 +00:00
Github Actions
16b6f5863d Mirror: 0.0.28 2022-10-12 15:16:21 +00:00
Github Actions
398cfa101f Mirror: 0.0.25 2022-10-12 15:16:21 +00:00
Github Actions
23f3979865 Mirror: 0.0.24 2022-10-12 15:16:21 +00:00
Github Actions
37297c7d15 Mirror: 0.0.23 2022-10-12 15:16:21 +00:00
Github Actions
03e6e30389 Mirror: 0.0.22 2022-10-12 15:16:21 +00:00
Github Actions
84d3cd7ace Mirror: 0.0.21 2022-10-12 15:16:21 +00:00
12 changed files with 478 additions and 163 deletions

10
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,10 @@
<!--
Thank you for taking the time to report an issue! We're glad to have you involved with Ruff.
If you're filing a bug report, please consider including the following information:
* A minimal code snippet that reproduces the bug.
* The current Ruff settings (any relevant sections from your `pyproject.toml`).
* The current Ruff version (`ruff --version`).
* A description of your environment (e.g., operating system, Python version, etc.).
-->

15
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,15 @@
<!--
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? -->
## Test Plan
<!-- How was it tested? -->

View File

@ -1,27 +1,59 @@
name: main
on:
schedule:
- cron: "0 0 * * *"
- cron: "0 */4 * * *"
workflow_dispatch:
repository_dispatch:
types: [pypi_release]
jobs:
build:
name: main
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- if: ${{ startsWith(github.event_name, 'repository_dispatch') }}
run: sleep 30
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- uses: actions/checkout@v4
- run: pip install pre-commit-mirror-maker
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: set git config
run: |
git config user.name 'Github Actions'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- run: pre-commit-mirror --language python --package-name ruff --entry ruff --id lint --types python --description "Run ruff to lint Python files." .
- run: uv run --no-project mirror.py
- run: git push origin HEAD:refs/heads/main --tags
- name: check for unpushed commits
id: check_unpushed
run: |
UNPUSHED_COMMITS=$(git log origin/main..HEAD)
if [ -z "$UNPUSHED_COMMITS" ]; then
echo "No unpushed commits found."
echo "changes_exist=false" >> $GITHUB_ENV
else
echo "Unpushed commits found."
echo "changes_exist=true" >> $GITHUB_ENV
fi
- name: push changes if they exist
if: env.changes_exist == 'true'
run: |
git push origin HEAD:refs/heads/main
git push origin HEAD:refs/heads/main --tags
- name: create release on new tag if new changes exist
if: env.changes_exist == 'true'
run: |
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1))
echo $TAG_NAME
gh release create "$TAG_NAME" \
--title "$TAG_NAME" \
--notes "See: https://github.com/astral-sh/ruff/releases/tag/${TAG_NAME/v}" \
--latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

130
.gitignore vendored
View File

@ -1,129 +1,3 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
.python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
__pycache__
*.pyc
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/

View File

@ -1,10 +1,33 @@
- id: lint
name: ruff
description: 'Run ruff to lint Python files.'
entry: ruff
language: python
'types': [python]
args: []
require_serial: false
additional_dependencies: []
minimum_pre_commit_version: '0'
- id: ruff-check
name: ruff check
description: "Run 'ruff check' for extremely fast Python linting"
entry: ruff check --force-exclude
language: python
types_or: [python, pyi, jupyter]
args: []
require_serial: true
additional_dependencies: []
minimum_pre_commit_version: "2.9.2"
- id: ruff-format
name: ruff format
description: "Run 'ruff format' for extremely fast Python formatting"
entry: ruff format --force-exclude
language: python
types_or: [python, pyi, jupyter]
args: []
require_serial: true
additional_dependencies: []
minimum_pre_commit_version: "2.9.2"
# Legacy alias
- id: ruff
name: ruff (legacy alias)
description: "Run 'ruff check' for extremely fast Python linting"
entry: ruff check --force-exclude
language: python
types_or: [python, pyi, jupyter]
args: []
require_serial: true
additional_dependencies: []
minimum_pre_commit_version: "2.9.2"

View File

@ -1 +0,0 @@
0.0.20

202
LICENSE-APACHE Normal file
View File

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2022 Charlie Marsh
Copyright (c) 2024 Astral Software Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,10 +1,90 @@
# ruff-pre-commit
A [pre-commit](https://pre-commit.com/) hook for [ruff](https://github.com/charliermarsh/ruff).
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![image](https://img.shields.io/pypi/v/ruff/0.11.13.svg)](https://pypi.python.org/pypi/ruff)
[![image](https://img.shields.io/pypi/l/ruff/0.11.13.svg)](https://pypi.python.org/pypi/ruff)
[![image](https://img.shields.io/pypi/pyversions/ruff/0.11.13.svg)](https://pypi.python.org/pypi/ruff)
[![Actions status](https://github.com/astral-sh/ruff-pre-commit/workflows/main/badge.svg)](https://github.com/astral-sh/ruff-pre-commit/actions)
Distributed as a standalone repository to enable installing ruff via prebuilt wheels from
A [pre-commit](https://pre-commit.com/) hook for [Ruff](https://github.com/astral-sh/ruff).
Distributed as a standalone repository to enable installing Ruff via prebuilt wheels from
[PyPI](https://pypi.org/project/ruff/).
### Using Ruff with pre-commit
To run Ruff's [linter](https://docs.astral.sh/ruff/linter) and [formatter](https://docs.astral.sh/ruff/formatter)
(available as of Ruff v0.0.289) via pre-commit, add the following to your `.pre-commit-config.yaml`:
```yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.13
hooks:
# Run the linter.
- id: ruff-check
# Run the formatter.
- id: ruff-format
```
To enable lint fixes, add the `--fix` argument to the lint hook:
```yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.13
hooks:
# Run the linter.
- id: ruff-check
args: [ --fix ]
# Run the formatter.
- id: ruff-format
```
To avoid running on Jupyter Notebooks, remove `jupyter` from the list of allowed filetypes:
```yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.13
hooks:
# Run the linter.
- id: ruff-check
types_or: [ python, pyi ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]
```
When running with `--fix`, Ruff's lint hook should be placed _before_ Ruff's formatter hook, and
_before_ Black, isort, and other formatting tools, as Ruff's fix behavior can output code changes
that require reformatting.
When running without `--fix`, Ruff's formatter hook can be placed before or after Ruff's lint hook.
(As long as your Ruff configuration avoids any [linter-formatter incompatibilities](https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules),
`ruff format` should never introduce new lint errors, so it's safe to run Ruff's format hook _after_
`ruff check --fix`.)
## License
MIT
ruff-pre-commit is licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <https://www.apache.org/licenses/LICENSE-2.0>)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in ruff-pre-commit by you, as defined in the Apache-2.0 license, shall be
dually licensed as above, without any additional terms or conditions.
<div align="center">
<a target="_blank" href="https://astral.sh" style="background:none">
<img src="https://raw.githubusercontent.com/astral-sh/ruff/main/assets/svg/Astral.svg">
</a>
</div>

84
mirror.py Normal file
View File

@ -0,0 +1,84 @@
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "packaging==23.1",
# "urllib3==2.0.5",
# ]
# ///
"""Update ruff-pre-commit to the latest version of ruff."""
import re
import subprocess
import tomllib
import typing
from pathlib import Path
import urllib3
from packaging.requirements import Requirement
from packaging.version import Version
def main():
with open(Path(__file__).parent / "pyproject.toml", "rb") as f:
pyproject = tomllib.load(f)
all_versions = get_all_versions()
current_version = get_current_version(pyproject=pyproject)
target_versions = [v for v in all_versions if v > current_version]
for version in target_versions:
paths = process_version(version)
if subprocess.check_output(["git", "status", "-s"]).strip():
subprocess.run(["git", "add", *paths], check=True)
subprocess.run(["git", "commit", "-m", f"Mirror: {version}"], check=True)
subprocess.run(["git", "tag", f"v{version}"], check=True)
else:
print(f"No change v{version}")
def get_all_versions() -> list[Version]:
response = urllib3.request("GET", "https://pypi.org/pypi/ruff/json")
if response.status != 200:
raise RuntimeError("Failed to fetch versions from pypi")
versions = [Version(release) for release in response.json()["releases"]]
return sorted(versions)
def get_current_version(pyproject: dict) -> Version:
requirements = [Requirement(d) for d in pyproject["project"]["dependencies"]]
requirement = next((r for r in requirements if r.name == "ruff"), None)
assert requirement is not None, "pyproject.toml does not have ruff requirement"
specifiers = list(requirement.specifier)
assert (
len(specifiers) == 1 and specifiers[0].operator == "=="
), f"ruff's specifier should be exact matching, but `{requirement}`"
return Version(specifiers[0].version)
def process_version(version: Version) -> typing.Sequence[str]:
def replace_pyproject_toml(content: str) -> str:
return re.sub(r'"ruff==.*"', f'"ruff=={version}"', content)
def replace_readme_md(content: str) -> str:
content = re.sub(r"rev: v\d+\.\d+\.\d+", f"rev: v{version}", content)
return re.sub(r"/ruff/\d+\.\d+\.\d+\.svg", f"/ruff/{version}.svg", content)
paths = {
"pyproject.toml": replace_pyproject_toml,
"README.md": replace_readme_md,
}
for path, replacer in paths.items():
with open(path) as f:
content = replacer(f.read())
with open(path, mode="w") as f:
f.write(content)
return tuple(paths.keys())
if __name__ == "__main__":
main()

6
pyproject.toml Normal file
View File

@ -0,0 +1,6 @@
[project]
name = "ruff-pre-commit"
version = "0.0.0"
dependencies = [
"ruff==0.11.13",
]

View File

@ -1,10 +0,0 @@
from __future__ import annotations
from setuptools import setup
setup(
name='pre_commit_placeholder_package',
version='0.0.0',
install_requires=['ruff==0.0.20'],
)