Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract common Python code to toml-fmt-common #12

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/common/target
/target
/pyproject-fmt/.tox
/pyproject-fmt/dist
/dist
.tox
target
dist
__pycache__
_lib.abi3.*
4 changes: 2 additions & 2 deletions common/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# toml-fmt common
# toml-fmt-common

Contains code common to all formatters.
Contains Rust code common to all formatters under the `toml-fmt` umbrella.

[![Test common](https://github.com/tox-dev/toml-fmt/actions/workflows/common.yaml/badge.svg)](https://github.com/tox-dev/toml-fmt/actions/workflows/common.yaml)
1 change: 0 additions & 1 deletion pyproject-fmt/.github/FUNDING.yml

This file was deleted.

13 changes: 0 additions & 13 deletions pyproject-fmt/.github/SECURITY.md

This file was deleted.

6 changes: 0 additions & 6 deletions pyproject-fmt/.github/dependabot.yml

This file was deleted.

5 changes: 0 additions & 5 deletions pyproject-fmt/.github/release.yml

This file was deleted.

93 changes: 0 additions & 93 deletions pyproject-fmt/.github/workflows/check.yaml

This file was deleted.

135 changes: 0 additions & 135 deletions pyproject-fmt/.github/workflows/release.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions pyproject-fmt/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion pyproject-fmt/.rustfmt.toml

This file was deleted.

4 changes: 2 additions & 2 deletions pyproject-fmt/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ If not set they will default to values from the CLI, the example above shows the
Command line interface
----------------------
.. sphinx_argparse_cli::
:module: pyproject_fmt.cli
:func: _build_cli
:module: pyproject_fmt.__main__
:func: _build_our_cli
:prog: pyproject-fmt
:title:

Expand Down
4 changes: 2 additions & 2 deletions pyproject-fmt/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ dynamic = [
"version",
]
dependencies = [
"tomli>=2.0.2; python_version<'3.11'",
"toml-fmt-common==1.0.1",
]
urls."Bug Tracker" = "https://github.com/tox-dev/toml-fmt/issues"
urls."Changelog" = "https://github.com/tox-dev/toml-fmt/blob/main/pyproject-fmt/CHANGELOG.md"
urls.Documentation = "https://github.com/tox-dev/toml-fmt/"
urls."Source Code" = "https://github.com/tox-dev/toml-fmt"
scripts.pyproject-fmt = "pyproject_fmt.__main__:run"
scripts.pyproject-fmt = "pyproject_fmt.__main__:runner"

[tool.maturin]
bindings = "pyo3"
Expand Down
2 changes: 1 addition & 1 deletion pyproject-fmt/src/pyproject_fmt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from .__main__ import run
from .__main__ import runner as run

__all__ = [
"run",
Expand Down
Loading
Loading