chore: add scripts/dev-setup.sh and a CLAUDE.md for working in this repository
dev-setup.sh creates the virtualenv with the pinned tools and installs the git hooks with the virtualenv first on PATH inside the hook scripts. Without that, the language: system hooks (REUSE, changelog lint, ansible-lint) fail with "No such file or directory: 'reuse'" on a plain `git commit`; found while testing the hooks in a fresh clone. CLAUDE.md records the rules of the repository for Claude Code: commit with git so the hooks run (the Gitea API skips them, which let four lint failures reach CI), feature branches and protected main/tags, the workflow rules, how the images are versioned and pinned, and the 100 MB layer limit. It is written for a repository that will be public: no addresses, no host names beyond the public Gitea. CONTRIBUTING.md points at the script. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
ffca1f88cf
commit
44470c3bc3
3 files changed
+97
-2
No files matched your search
+2
-2
@@ -12,8 +12,8 @@
|
||||
- Role variables carry the role name as a prefix (`<role>_<name>`).
|
||||
- Third-party material needs an SPDX header, a `REUSE.toml` annotation (it
|
||||
overrides file headers) and an entry in `NOTICE`.
|
||||
- Set up the tooling with `pip install -r requirements-dev.txt` in a virtualenv,
|
||||
then run `pre-commit install --install-hooks` once and
|
||||
- Set up the tooling once per clone with `scripts/dev-setup.sh`: it creates a virtualenv with
|
||||
the pinned tools (`requirements-dev.txt`) and installs git hooks that find them. Then
|
||||
`pre-commit run --all-files` before pushing.
|
||||
- Never commit credentials, tokens or key material.
|
||||
- Releases are cut by the maintainer: bump `version` in `galaxy.yml`, add a
|
||||
|
||||
Reference in new issue
Block a user