From ce0ca6c7891032a5aa4b38d16740adae7c16c25a Mon Sep 17 00:00:00 2001 From: Jackson Vieira Date: Wed, 3 Dec 2025 13:58:44 -0300 Subject: [PATCH] refactor: configure ruff ignores and fix import issues --- evolutionapi/services/message.py | 5 ----- evolutionapi/services/profile.py | 8 +++++++- pyproject.toml | 5 ++++- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/evolutionapi/services/message.py b/evolutionapi/services/message.py index ed30121..98071ab 100644 --- a/evolutionapi/services/message.py +++ b/evolutionapi/services/message.py @@ -5,17 +5,12 @@ import requests from requests_toolbelt import MultipartEncoder from ..models.message import ( - Button, ButtonMessage, - Contact, ContactMessage, ListMessage, - ListRow, - ListSection, LocationMessage, MediaMessage, PollMessage, - QuotedMessage, ReactionMessage, StatusMessage, TextMessage, diff --git a/evolutionapi/services/profile.py b/evolutionapi/services/profile.py index 61c1b0e..1e46ff7 100644 --- a/evolutionapi/services/profile.py +++ b/evolutionapi/services/profile.py @@ -1,4 +1,10 @@ -from ..models.profile import FetchProfile, PrivacySettings, ProfileName, ProfilePicture, ProfileStatus +from ..models.profile import ( + FetchProfile, + PrivacySettings, + ProfileName, + ProfilePicture, + ProfileStatus, +) class ProfileService: diff --git a/pyproject.toml b/pyproject.toml index ce0e236..2b6a662 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,10 @@ select = [ "SIM", # flake8-simplify ] 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]