5 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
a7df6ca65d chore(github): put the base branch where the PR author is looking
CONTRIBUTING.md has said 'do not submit PRs directly to main' since it
was written, and says 'when in doubt, target dev'. Twenty-one open PRs
were still sitting on main, some of them a year old, because GitHub
preselects the default branch in the PR form and nobody reads a
CONTRIBUTING link while filling one in.

The default branch stays main, so the reminder has to be at the moment
of creation instead: the composer comment, which is on screen right
below the base selector, and a checklist item so a reviewer can see it
was skipped. All twenty-one have been retargeted.
2026-09-11 12:43:41 +08:00
Bingxi Zhao
16bc0f4656 ver0.5.0-dev 2026-01-15 02:49:17 +08:00
Scarlet Moore
a0433d784e Feature/pre commit ci (#37)
* feat: add comprehensive pre-commit CI hooks

- Add safety for dependency vulnerability scanning
- Add bandit for Python security linting with appropriate skips
- Add interrogate for docstring coverage checking (60% threshold)
- Add mypy for type checking with permissive CI configuration
- Update requirements.txt with safety and bandit dependencies
- Configure all tools for CI compatibility (non-blocking for initial setup)

* security: add hardening measures based on upstream issues

- Add .gitattributes rules to force LF line endings for critical files (fixes CRLF security issues)
- Enhance document validator with MIME type validation and stricter PDF size limits
- Fix subprocess security issues by adding shell=False to prevent command injection
- Add resource exhaustion protection with separate PDF size limits (50MB vs 100MB general limit)

Addresses upstream issues:
- #97: Cross-platform deployment failures due to CRLF line endings
- #31: Large PDF processing failures and resource exhaustion
- Security hardening for subprocess calls to prevent injection attacks

* docs: streamline contribution process and pre-commit checks

- Update and format CONTRIBUTING.md for clarity

- Simplify pull request template

- Adjust pre-commit config to be more lenient locally

* chore: update .gitignore, .secrets.baseline, pyproject.toml, and requirements.txt for improved configuration and dependency management
2026-01-14 13:57:18 +11:00
Bingxi Zhao
d9abd3aa68 feat: release ver0.3.0 2026-01-06 01:56:17 +08:00
Pancake
fbb0b15cad Initial commit 2025-12-28 23:45:41 +08:00