mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2025-12-14 20:29:33 -06:00
refactor: configure ruff ignores and fix import issues
This commit is contained in:
parent
21115cca06
commit
ce0ca6c789
@ -5,17 +5,12 @@ import requests
|
|||||||
from requests_toolbelt import MultipartEncoder
|
from requests_toolbelt import MultipartEncoder
|
||||||
|
|
||||||
from ..models.message import (
|
from ..models.message import (
|
||||||
Button,
|
|
||||||
ButtonMessage,
|
ButtonMessage,
|
||||||
Contact,
|
|
||||||
ContactMessage,
|
ContactMessage,
|
||||||
ListMessage,
|
ListMessage,
|
||||||
ListRow,
|
|
||||||
ListSection,
|
|
||||||
LocationMessage,
|
LocationMessage,
|
||||||
MediaMessage,
|
MediaMessage,
|
||||||
PollMessage,
|
PollMessage,
|
||||||
QuotedMessage,
|
|
||||||
ReactionMessage,
|
ReactionMessage,
|
||||||
StatusMessage,
|
StatusMessage,
|
||||||
TextMessage,
|
TextMessage,
|
||||||
|
|||||||
@ -1,4 +1,10 @@
|
|||||||
from ..models.profile import FetchProfile, PrivacySettings, ProfileName, ProfilePicture, ProfileStatus
|
from ..models.profile import (
|
||||||
|
FetchProfile,
|
||||||
|
PrivacySettings,
|
||||||
|
ProfileName,
|
||||||
|
ProfilePicture,
|
||||||
|
ProfileStatus,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class ProfileService:
|
class ProfileService:
|
||||||
|
|||||||
@ -55,7 +55,10 @@ select = [
|
|||||||
"SIM", # flake8-simplify
|
"SIM", # flake8-simplify
|
||||||
]
|
]
|
||||||
ignore = [
|
ignore = [
|
||||||
"E501", # line too long (handled by formatter)
|
"E501", # line too long (handled by formatter)
|
||||||
|
"N803", # argument name should be lowercase (API compatibility)
|
||||||
|
"N815", # variable in class scope should not be mixedCase (API compatibility)
|
||||||
|
"SIM115", # context manager for files (requires refactoring file upload logic)
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.lint.isort]
|
[tool.ruff.lint.isort]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user