Skip to content

Commit LFS rules by default with --use-lfs (0.1.2) - #4

Merged
coldsofttech merged 1 commit into
mainfrom
issue/lfs-commit-rules-default
Oct 25, 2026
Merged

coldsofttech merged 1 commit into
mainfrom
issue/lfs-commit-rules-default

Conversation

@coldsofttech

Copy link
Copy Markdown
Owner

Problem

--use-lfs kept its rules only in .git/info/attributes and removed them after the run. Any later checkout, pull, reset or clone then wrote LFS pointer files into the working tree, so videos failed to open as corrupt.

Changes

  • --use-lfs now commits per-extension rules to .gitattributes by default.
  • --no-lfs-commit-rules restores the old local-only behaviour; --lfs-commit-rules is still accepted.
  • Releases publish to PyPI via trusted publishing (OIDC) instead of PYPI_API_TOKEN. A trusted publisher must be configured on PyPI (workflow release.yml, environment pypi).
  • Add .github/CODEOWNERS, and keywords, classifiers and URLs in pyproject.toml.
  • Bump version to 0.1.2 and update the changelog, README and architecture doc.
  • Remove the obsolete CLI test case for --lfs-commit-rules without --use-lfs.

Testing

tests/test_cli.py passes. The full suite was not run locally.

Keeping the rules only in .git/info/attributes left LFS pointer files in the
working tree after any checkout, pull or clone. --use-lfs now commits
per-extension rules to .gitattributes; --no-lfs-commit-rules restores the
old local-only behaviour.

Also: release via PyPI trusted publishing (OIDC), add CODEOWNERS, add
keywords/classifiers/urls to pyproject.toml, bump to 0.1.2.
@coldsofttech coldsofttech self-assigned this Oct 25, 2026
@coldsofttech
coldsofttech merged commit 5bfd994 into main Oct 25, 2026
11 checks passed
@coldsofttech
coldsofttech deleted the issue/lfs-commit-rules-default branch October 25, 2026 10:14
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