-
Notifications
You must be signed in to change notification settings - Fork 0
Export AutoModerator from main package for cleaner imports #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add AutoModerator to package __init__.py with __all__ export - Update all imports from 'moderators.auto_model' to 'moderators' - Update example model references to viddexa/nsfw-detector-mini
❌ Ruff Formatting IssuesThe following formatting issues were found: 🔧 How to fix:Auto-format your code: uv run ruff format .This will automatically format all Python files to match the project style. |
- Lower target version to py39 for broader compatibility - Extend linter rules with F, RUF, and FA checks - Add RUF-specific ignores for Unicode ambiguity and mutable defaults
❌ Ruff Linting IssuesThe following linting issues were found: 🔧 How to fix:Option 1: Auto-fix (recommended) uv run ruff check . --fixOption 2: Check only uv run ruff check .💡 Most issues marked with |
❌ Ruff Formatting IssuesThe following formatting issues were found: 🔧 How to fix:Auto-format your code: uv run ruff format .This will automatically format all Python files to match the project style. |
- Add missing newline at end of file in __init__.py - Sort __all__ exports alphabetically in utils - Remove unnecessary noqa comments from valid imports - Remove redundant int() calls around round() - Convert Turkish comments to English in tests
Simplify package API by exporting AutoModerator directly from the main package.
AutoModeratorin src/moderators/init.py:3-5from moderators.auto_model import AutoModeratortofrom moderators import AutoModeratoracross:viddexa/nsfw-minitoviddexa/nsfw-detector-mini