Skip to content

chore: set up Tailor, build with uv_build, add checks, repo set up - #2

Merged
aeskildsen merged 5 commits into
mainfrom
chore/tailor-setup
Nov 30, 2026
Merged

aeskildsen merged 5 commits into
mainfrom
chore/tailor-setup

Conversation

@aeskildsen

@aeskildsen aeskildsen commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Set up the repository with Tailor, move the build to uv_build, add formatting, lint and type checks, and follow the repository standard for documentation and releases.

  • Tailor: .tailor.yml, issue templates, CODE_OF_CONDUCT.md, CONTRIBUTING.md, SECURITY.md, SUPPORT.md and the just files. No Tailor languages: the recipes run the scripts in just/project/.
  • Recipes: check, test, lint and build.
  • Build backend: uv_build in place of setuptools; MANIFEST.in is removed. The package files in the wheel and the sdist did not change with the new backend. The setuptools metadata files and MANIFEST.in are gone, and the sdist has pyproject.toml.orig.
  • Format: ruff format at line length 120.
  • Lint and types: ruff check and basedpyright pass, and a new CI job runs them. The fixes change annotations and the form of the code. The base class Backend now declares the attributes and methods for method sections and tables.
  • Changelog and releases: new CHANGELOG.md with a section for each version tag. just release checks the branch, the version in pyproject.toml and the changelog section.
  • Documents: CLAUDE.md is now AGENTS.md with the rules for agents only. docs/development.md is now DEVELOPING.md, and the design notes are in docs/design.md. README.md has the standard sections.

Checked:

  • All tests pass with sclang. The test fixtures did not change.
  • The tests pass from the unpacked sdist, from an editable install and from a pip install.
  • The converters give the same output, errors and warnings as main for the Markdown files of the repository and 60 000 random texts.
  • just release stops in each failure case and makes an annotated tag when all checks pass (tried in a throwaway clone). The links between the Markdown files resolve.

Set up the repository with Tailor, add the shared `just` recipes and move the build to `uv_build`.

- Tailor: `.tailor.yml`, issue templates, `CODE_OF_CONDUCT.md`, `CONTRIBUTING.md`, `SECURITY.md`, `SUPPORT.md` and the `just` files. No Tailor languages: the recipes run the scripts in `just/project/`.
- Recipes: `check`, `test` and `build`. `lint` runs `actionlint`.
- Build backend: `uv_build` in place of setuptools; `MANIFEST.in` is removed. The package files in the wheel and the sdist are the same as before. The setuptools metadata files and `MANIFEST.in` are gone, and the sdist now has `pyproject.toml.orig`.
- `ruff` and `basedpyright` are in the `test` extra.

Checked: the tests pass from the unpacked sdist, from an editable install and from a `pip` install.
Format the Python code with `ruff format`, line length 120, and add `ruff.toml`. There are no hand-made changes.

Checked: the syntax tree of each file is the same as before, except the trailing white space in one docstring. All tests pass with `sclang`, and the test fixtures have no change.

Stacked on #2.
Add `pyrightconfig.json`, the `lint` script of `just lint` and a CI job.
Fix the findings with changes to annotations and to the form of the code.
The output and the errors of the conversions do not change.
@aeskildsen aeskildsen changed the title chore: set up Tailor and just recipes; build with uv_build chore: set up Tailor, build with uv_build, add format, lint and type checks Nov 30, 2026
- Add CHANGELOG.md with a section for each version tag.
- `just release` checks the branch, the version and the changelog section.
- CLAUDE.md becomes AGENTS.md, with the rules for agents only.
- docs/development.md becomes DEVELOPING.md. The design notes are in
  docs/design.md.
- README.md has the standard sections.
@aeskildsen aeskildsen changed the title chore: set up Tailor, build with uv_build, add format, lint and type checks chore: set up Tailor, build with uv_build, add checks, follow the repository standard Nov 30, 2026
@aeskildsen aeskildsen changed the title chore: set up Tailor, build with uv_build, add checks, follow the repository standard chore: set up Tailor, build with uv_build, add checks, repo set up Nov 30, 2026
@aeskildsen
aeskildsen merged commit d357628 into main Nov 30, 2026
7 checks passed
@aeskildsen
aeskildsen deleted the chore/tailor-setup branch November 30, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant