Skip to content

Commit

Permalink
Extract common Python code to toml-fmt-common (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Oct 20, 2024
1 parent 0f7af98 commit 85b99c9
Show file tree
Hide file tree
Showing 19 changed files with 184 additions and 812 deletions.
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

0 comments on commit 85b99c9

Please sign in to comment.