Skip to content

Commit

Permalink
Fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek committed Dec 2, 2024
1 parent 837c4c7 commit 0274b78
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,18 @@ asyncio_mode = "auto"

[tool.ruff.lint]
ignore = [
"ANN101", # Self... explanatory
"ANN102", # cls... just as useless
"ANN401", # Opinioated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"D417", # False positives in some occasions
"PLR2004", # Just annoying, not really useful
"TCH001",
"TC001",
"TRY301",
"FBT001", # Boolean positional arg
"FBT002", # Boolean default arg
"PLR0913", # A lot of arguments
"ISC001", # Conflicts with other rules
"COM812", # Conflicts with other rules
]
select = ["ALL"]

Expand Down
2 changes: 1 addition & 1 deletion src/youtubeaio/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"YOUTUBE_AUTH_TOKEN_URL",
"build_scope",
"build_url",
"first",
"chunk",
"first",
"limit",
]

Expand Down
14 changes: 7 additions & 7 deletions src/youtubeaio/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
)

__all__ = [
"YouTubeThumbnail",
"YouTubeVideoThumbnails",
"YouTubeVideoSnippet",
"YouTubeVideo",
"YouTubeChannelThumbnails",
"YouTubeChannelRelatedPlaylists",
"YouTubeChannel",
"YouTubeChannelContentDetails",
"YouTubeChannelRelatedPlaylists",
"YouTubeChannelSnippet",
"YouTubeChannel",
"YouTubeChannelThumbnails",
"YouTubeThumbnail",
"YouTubeVideo",
"YouTubeVideoSnippet",
"YouTubeVideoThumbnails",
]

from youtubeaio.helper import get_duration
Expand Down
12 changes: 6 additions & 6 deletions src/youtubeaio/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

__all__ = [
"AuthScope",
"YouTubeAPIError",
"YouTubeAuthorizationError",
"DeprecatedError",
"ForbiddenError",
"InvalidRefreshTokenError",
"InvalidTokenError",
"UnauthorizedError",
"MissingAppSecretError",
"MissingScopeError",
"UnauthorizedError",
"YouTubeAPIError",
"YouTubeAuthorizationError",
"YouTubeBackendError",
"MissingAppSecretError",
"DeprecatedError",
"YouTubeResourceNotFoundError",
"ForbiddenError",
]


Expand Down
2 changes: 1 addition & 1 deletion tests/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ lint.extend-ignore = [
"S101", # Use of assert detected. As these are tests...
"S106", # Detection of passwords...
"SLF001", # Tests will access private/protected members...
"TCH002", # pytest doesn't like this one...
"TC002", # pytest doesn't like this one...
"PT011", # We want to check for broad exceptions...
]

0 comments on commit 0274b78

Please sign in to comment.