Export AutoModerator from main package for cleaner imports#10
Merged
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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