Skip to content

Claude/ci typing#25

Merged
danwald merged 11 commits intomainfrom
claude/ci-typing
May 7, 2026
Merged

Claude/ci typing#25
danwald merged 11 commits intomainfrom
claude/ci-typing

Conversation

@danwald
Copy link
Copy Markdown
Owner

@danwald danwald commented May 7, 2026

No description provided.

danwald added 6 commits May 7, 2026 22:23
- Add ruff to dev dependencies
- Configure ruff with line-length=120 and select lint rules for E,W,F,I,UP,B,C4,T10
- Format codebase with ruff (sort imports, convert to f-strings)
- Run ruff linting and format checks on push and pull requests
- Check both source code and tests for compliance
- Run ty check as part of lint job
- Checks both source and test code for type errors
- Export PyTextractor from __init__.py for cleaner imports
- Add py.typed marker to indicate package supports type checking
- Change from relative import (from .pytextractor) to absolute import (from pytextractor)
- Improves compatibility with type checkers like ty
@danwald danwald force-pushed the claude/ci-typing branch from a877068 to a746685 Compare May 7, 2026 18:23
@danwald danwald force-pushed the claude/ci-typing branch from a746685 to f458358 Compare May 7, 2026 18:37
danwald added 4 commits May 7, 2026 22:42
- Format test_detector.py with ruff for consistency
- Add @pytest.mark.pytesseract marker to tests requiring pytesseract
- Configure pytest marker in pyproject.toml
- Update CI test workflow to skip pytesseract tests with -m 'not pytesseract'
- Local test runs still include all tests, CI skips pytesseract-dependent ones
- Test that text_detector CLI accepts --help flag
- Verify help text contains description
- Simple smoke test for command-line interface
@danwald danwald merged commit 06a95c7 into main May 7, 2026
3 checks passed
@danwald danwald deleted the claude/ci-typing branch May 7, 2026 19:01
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