Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Commit 9a30676

Browse files
committed
Separate out to a meta package and use pep508rs
Signed-off-by: Bernát Gábor <[email protected]>
1 parent a850ed6 commit 9a30676

30 files changed

+302
-2012
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tidelift: "pypi/pyproject-fmt"
1+
tidelift: "pypi/pyproject-fmt-rust"

.github/SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
| Version | Supported |
66
|---------|--------------------|
7-
| 2.0 + | :white_check_mark: |
8-
| < 2.0 | :x: |
7+
| 1.0 + | :white_check_mark: |
8+
| < 1.0 | :x: |
99

1010
## Reporting a Vulnerability
1111

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ dist
77

88
/target
99
/pyproject-*.toml
10-
/src/pyproject_fmt/_lib.abi3*
10+
/src/pyproject_fmt_rust/_lib.abi3*
1111
/tarpaulin-report.html
1212
/build_rs_cov.profraw

.pre-commit-config.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,28 @@ repos:
1313
rev: v2.2.6
1414
hooks:
1515
- id: codespell
16-
args: ["--write-changes"]
16+
args: [ "--write-changes" ]
1717
- repo: https://github.com/tox-dev/tox-ini-fmt
1818
rev: "1.3.1"
1919
hooks:
2020
- id: tox-ini-fmt
21-
args: ["-p", "fix"]
21+
args: [ "-p", "fix" ]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
2323
rev: "1.8.0"
2424
hooks:
2525
- id: pyproject-fmt
26-
additional_dependencies: ["tox>=4.15"]
26+
additional_dependencies: [ "tox>=4.15" ]
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
2828
rev: "v0.4.4"
2929
hooks:
3030
- id: ruff-format
3131
- id: ruff
32-
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
32+
args: [ "--fix", "--unsafe-fixes", "--exit-non-zero-on-fix" ]
33+
- repo: https://github.com/doublify/pre-commit-rust
34+
rev: v1.0
35+
hooks:
36+
- id: fmt
37+
- id: clippy
3338
- repo: meta
3439
hooks:
3540
- id: check-hooks-apply

.readthedocs.yml

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

Cargo.lock

Lines changed: 124 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "pyproject-fmt"
2+
name = "pyproject-fmt-rust"
33
version = "2.0.0"
44
description = "Format pyproject.toml files"
55
repository = "https://github.com/tox-dev/pyproject-fmt"
@@ -15,6 +15,7 @@ crate-type = ["cdylib"]
1515
[dependencies]
1616
taplo = { version = "0.13.0" } # formatter
1717
pyo3 = { version = "0.21.2", features = ["abi3-py38"] } # integration with Python
18+
pep508_rs = { version = "0.5.0" }
1819
lexical-sort = { version = "0.3.1" }
1920
regex = { version = "1.10.4" }
2021

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# pyproject-fmt
1+
# pyproject-fmt-rust
22

3-
[![PyPI](https://img.shields.io/pypi/v/pyproject-fmt?style=flat-square)](https://pypi.org/project/pyproject-fmt)
4-
[![PyPI - Implementation](https://img.shields.io/pypi/implementation/pyproject-fmt?style=flat-square)](https://pypi.org/project/pyproject-fmt)
5-
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyproject-fmt?style=flat-square)](https://pypi.org/project/pyproject-fmt)
6-
[![Downloads](https://static.pepy.tech/badge/pyproject-fmt/month)](https://pepy.tech/project/pyproject-fmt)
7-
[![PyPI - License](https://img.shields.io/pypi/l/pyproject-fmt?style=flat-square)](https://opensource.org/licenses/MIT)
8-
[![check](https://github.com/tox-dev/pyproject-fmt/actions/workflows/check.yml/badge.svg)](https://github.com/tox-dev/pyproject-fmt/actions/workflows/check.yml)
3+
[![PyPI](https://img.shields.io/pypi/v/pyproject-fmt-rust?style=flat-square)](https://pypi.org/project/pyproject-fmt-rust)
4+
[![PyPI - Implementation](https://img.shields.io/pypi/implementation/pyproject-fmt-rust?style=flat-square)](https://pypi.org/project/pyproject-fmt-rust)
5+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyproject-fmt-rust?style=flat-square)](https://pypi.org/project/pyproject-fmt-rust)
6+
[![Downloads](https://static.pepy.tech/badge/pyproject-fmt-rust/month)](https://pepy.tech/project/pyproject-fmt-rust)
7+
[![PyPI - License](https://img.shields.io/pypi/l/pyproject-fmt-rust?style=flat-square)](https://opensource.org/licenses/MIT)
8+
[![check](https://github.com/tox-dev/pyproject-fmt-rust/actions/workflows/check.yml/badge.svg)](https://github.com/tox-dev/pyproject-fmt-rust/actions/workflows/check.yml)
99

1010
Apply a consistent format to `pyproject.toml` files.
11-
[Read the full documentation here](https://pyproject-fmt.readthedocs.io/en/latest/).
11+
[Read the full documentation here](https://pyproject-fmt-rust.readthedocs.io/en/latest/).
1212

1313
## add to pre-commit
1414

1515
```yaml
16-
- repo: https://github.com/tox-dev/pyproject-fmt
16+
- repo: https://github.com/tox-dev/pyproject-fmt-rust
1717
rev: "1.7.0"
1818
hooks:
19-
- id: pyproject-fmt
19+
- id: pyproject-fmt-rust
2020
```

docs/conf.py

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

0 commit comments

Comments
 (0)