Commit Graph

473 Commits

Author SHA1 Message Date
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