Skip to content

Commit 7c876a5

Browse files
committed
Make it mirror repository
Signed-off-by: Bernát Gábor <[email protected]>
1 parent bcbeff3 commit 7c876a5

22 files changed

+257
-1164
lines changed

.github/workflows/check.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
name: check
1+
name: Test
22
on:
33
workflow_dispatch:
44
push:
55
branches: ["main"]
6-
tags-ignore: ["**"]
76
pull_request:
87
schedule:
98
- cron: "0 8 * * *"
109

1110
concurrency:
12-
group: check-${{ github.ref }}
11+
group: ${{ github.workflow }}-${{ github.ref }}
1312
cancel-in-progress: true
1413

1514
jobs:
@@ -26,7 +25,6 @@ jobs:
2625
- "3.9"
2726
- type
2827
- dev
29-
- pkg_meta
3028
steps:
3129
- uses: actions/checkout@v4
3230
with:
@@ -36,7 +34,6 @@ jobs:
3634
with:
3735
enable-cache: true
3836
cache-dependency-glob: "pyproject.toml"
39-
github-token: ${{ secrets.GITHUB_TOKEN }}
4037
- name: Install tox
4138
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv
4239
- name: Install Python

.github/workflows/mirror.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Mirror
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
schedule:
8+
- cron: "0 8 * * *"
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
permissions:
17+
contents: write
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Install the latest version of uv
24+
uses: astral-sh/setup-uv@v3
25+
with:
26+
enable-cache: true
27+
cache-dependency-glob: "pyproject.toml"
28+
- name: Run mirroring
29+
run: uv run tasks/mirror.py '${{ github.ref == 'refs/heads/main' }}'

.github/workflows/release.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
*.egg-info/
2-
.tox/
31
.*_cache
2+
.tox
43
__pycache__
5-
**.pyc
6-
dist
7-
/src/pyproject_fmt/_version.py

.pre-commit-config.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,24 @@ repos:
1313
rev: v2.3.0
1414
hooks:
1515
- id: codespell
16-
additional_dependencies: ["tomli>=2.0.2"]
17-
- repo: https://github.com/tox-dev/tox-ini-fmt
18-
rev: "1.4.1"
19-
hooks:
20-
- id: tox-ini-fmt
21-
args: ["-p", "fix"]
16+
additional_dependencies: ["tomli>=2.0.1"]
2217
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "2.3.0"
18+
rev: "2.3.1"
2419
hooks:
2520
- id: pyproject-fmt
2621
- repo: https://github.com/astral-sh/ruff-pre-commit
2722
rev: "v0.6.9"
2823
hooks:
2924
- id: ruff-format
25+
args: ["--config", "pyproject.toml"]
3026
- id: ruff
31-
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
27+
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix", "--config", "pyproject.toml"]
3228
- repo: https://github.com/rbubley/mirrors-prettier
3329
rev: "v3.3.3"
3430
hooks:
3531
- id: prettier
36-
additional_dependencies:
37-
38-
- "@prettier/[email protected]"
32+
name: Prettier
33+
args: ["--print-width=120", "--prose-wrap=always"]
3934
- repo: meta
4035
hooks:
4136
- id: check-hooks-apply

.readthedocs.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
# pyproject-fmt
1+
# pyproject-fmt mirror
22

3-
Migrated into the [toml-fmt](https://github.com/gaborbernat/toml-fmt) repository.
4-
5-
[![PyPI](https://img.shields.io/pypi/v/pyproject-fmt?style=flat-square)](https://pypi.org/project/pyproject-fmt)
6-
[![PyPI - Implementation](https://img.shields.io/pypi/implementation/pyproject-fmt?style=flat-square)](https://pypi.org/project/pyproject-fmt)
7-
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyproject-fmt?style=flat-square)](https://pypi.org/project/pyproject-fmt)
8-
[![Downloads](https://static.pepy.tech/badge/pyproject-fmt/month)](https://pepy.tech/project/pyproject-fmt)
9-
[![PyPI - License](https://img.shields.io/pypi/l/pyproject-fmt?style=flat-square)](https://opensource.org/licenses/MIT)
10-
[![check](https://github.com/tox-dev/pyproject-fmt/actions/workflows/check.yaml/badge.svg)](https://github.com/tox-dev/pyproject-fmt/actions/workflows/check.yaml)
11-
12-
Apply a consistent format to the `pyproject.toml` files.
13-
14-
[For more information on how to use or configure read the documentation here](https://pyproject-fmt.readthedocs.io/en/latest/).
3+
The source code for this project now lives inside
4+
[toml-fmt](https://github.com/tox-dev/toml-fmt/tree/main/pyproject-fmt), this repository serves only as a mirror for
5+
pre-commit.

docs/conf.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

docs/index.rst

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)