Skip to content

Commit

Permalink
refactor: Revert addition of ssort
Browse files Browse the repository at this point in the history
`ssort` re-orders class attributes without taking
their docstrings into account.
See bwhmather/ssort#70
  • Loading branch information
pawamoy committed Oct 7, 2023
1 parent 79aed8f commit d182802
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ If you are using it, see [how to migrate to copier-pdm](https://pawamoy.github.i
- Pre-configured tools for code formatting, quality analysis and testing:
- [black](https://github.com/psf/black),
- [blacken-docs](https://github.com/adamchainz/blacken-docs),
- [ssort](https://github.com/bwhmather/ssort),
- [ruff](https://github.com/charliermarsh/ruff),
- [mypy](https://github.com/python/mypy),
- [safety](https://github.com/pyupio/safety)
Expand Down
3 changes: 1 addition & 2 deletions project/duties.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ from pathlib import Path
from typing import TYPE_CHECKING, Any

from duty import duty
from duty.callables import black, blacken_docs, coverage, lazy, mkdocs, mypy, pytest, ruff, safety, ssort
from duty.callables import black, blacken_docs, coverage, lazy, mkdocs, mypy, pytest, ruff, safety

if TYPE_CHECKING:
from duty.context import Context
Expand Down Expand Up @@ -255,7 +255,6 @@ def format(ctx: Context) -> None:
ruff.check(*PY_SRC_LIST, config="config/ruff.toml", fix_only=True, exit_zero=True),
title="Auto-fixing code",
)
ctx.run(ssort.run(*PY_SRC_LIST), title="Sorting code")
ctx.run(black.run(*PY_SRC_LIST, config="config/black.toml"), title="Formatting code")
ctx.run(
blacken_docs.run(*PY_SRC_LIST, "docs", exts=["py", "md"], line_length=120),
Expand Down
1 change: 0 additions & 1 deletion project/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ maintain = [
"black>=23.1",
"blacken-docs>=1.13",
"git-changelog>=1.0",
"ssort>=0.11",
]
quality = [
"ruff>=0.0.246",
Expand Down

0 comments on commit d182802

Please sign in to comment.