Skip to content

Commit 0d983b4

Browse files
committed
Skip more linting rules, revert a few changes with double qoutes
1 parent 9029063 commit 0d983b4

File tree

3 files changed

+27
-28
lines changed

3 files changed

+27
-28
lines changed

pyproject.toml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,32 +69,34 @@ select = ["A", "ARG", "B", "C4", "DOC", "DTZ", "E", "EM", "ERA", "EXE", "F", "FA
6969
# Never enforce `E501` (line length violations).
7070
ignore = [
7171
# TODO: Fix unused function argument: `debug`, `kwargs`, and `method` in class Client
72-
'ARG001', # ARG001 Unused function argument: `debug`, `kwargs`, and `method` in class Client
72+
"ARG001", # ARG001 Unused function argument: `debug`, `kwargs`, and `method` in class Client
7373
# TODO: Fix A001 Variable `TimeoutError` is shadowing a Python builtin
74-
'A001' ,
74+
"A001" ,
7575
# TODO: Fix A002 Argument `id` is shadowing a Python builtin
76-
'A002',
76+
"A002",
77+
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None`
7778
# pycodestyle (E, W)
78-
'E501',
79-
'INP001', # INP001 File `samples/campaign_sample.py` is part of an implicit namespace package. Add an `__init__.py`.
80-
'PD901',
81-
'PD015',
79+
"E501",
80+
"INP001", # INP001 File `samples/campaign_sample.py` is part of an implicit namespace package. Add an `__init__.py`.
81+
"PD901",
82+
"PD015",
8283
# pep8-naming (N)
83-
'N802',
84-
'N806',
84+
"N802",
85+
"N806",
8586
# TODO: PLE0604 Invalid object in `__all__`, must contain only strings
86-
'PLE0604',
87-
'PLR2004', # PLR2004 Magic value used in comparison, consider replacing `XXX` with a constant variable
88-
'PLR0913', # PLR0913 Too many arguments in function definition (6 > 5)
89-
'PLR0917', # PLR0917 Too many positional arguments
87+
"PLE0604",
88+
"PLR2004", # PLR2004 Magic value used in comparison, consider replacing `XXX` with a constant variable
89+
"PLR0913", # PLR0913 Too many arguments in function definition (6 > 5)
90+
"PLR0917", # PLR0917 Too many positional arguments
91+
# TODO: "Remove Q000 it before the next release
92+
"Q000",
9093
"Q003", # Checks for avoidable escaped quotes ("\"" -> '"')
91-
# RET504 Unnecessary assignment to `response` before `return` statement
92-
'RET504',
93-
'RUF012',
94-
# TODO: PT009 Use a regular `assert` instead of unittest-style `assertTrue`
95-
'PT009',
96-
# pyupgrade (UP): Skip for logging: UP031 Use format specifiers instead of percent format
97-
'UP031'
94+
"RET504", # RET504 Unnecessary assignment to `response` before `return` statement
95+
"RUF012",
96+
# TODO:" PT009 Use a regular `assert` instead of unittest-style `assertTrue`
97+
"PT009",
98+
"S311", # S311 Standard pseudo-random generators are not suitable for cryptographic purposes
99+
"UP031", # pyupgrade (UP): Skip for logging: UP031 Use format specifiers instead of percent format
98100
]
99101

100102

samples/campaign_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def api_call_requirements():
7575
"Subject": "Your email flight plan!",
7676
"TextPart": "Dear passenger 1, welcome to Mailjet! May the delivery force be with you!",
7777
"HTMLPart": "<h3>Dear passenger 1, welcome to <a "
78-
"href=\"https://www.mailjet.com/\">Mailjet</a>!</h3><br />May the delivery force be with "
79-
"you!",
78+
"href=\"https://www.mailjet.com/\">Mailjet</a>!</h3><br />May the delivery force be with "
79+
"you!",
8080
"CustomCampaign": "SendAPI_campaign",
8181
"DeduplicateCampaign": True}]}
8282
# fmt: on

samples/contacts_sample.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ def add_a_contact_to_a_contact_list():
6464

6565

6666
def manage_the_subscription_status_of_an_existing_contact():
67-
"""POST https://api.mailjet.com/v3/REST/contact/$contact_ID
68-
/managecontactslists"""
67+
"""POST https://api.mailjet.com/v3/REST/contact/$contact_ID/managecontactslists"""
6968
_id = "$contact_ID"
7069
data = {
7170
"ContactsLists": [
@@ -79,8 +78,7 @@ def manage_the_subscription_status_of_an_existing_contact():
7978

8079

8180
def manage_multiple_contacts_in_a_list():
82-
"""POST https://api.mailjet.com/v3/REST/contactslist/$list_ID
83-
/managemanycontacts"""
81+
"""POST https://api.mailjet.com/v3/REST/contactslist/$list_ID/managemanycontacts"""
8482
_id = "$list_ID"
8583
data = {
8684
"Action": "addnoforce",
@@ -97,8 +95,7 @@ def manage_multiple_contacts_in_a_list():
9795

9896

9997
def monitor_the_upload_job():
100-
"""GET https://api.mailjet.com/v3/REST/contactslist/$list_ID
101-
/managemanycontacts"""
98+
"""GET https://api.mailjet.com/v3/REST/contactslist/$list_ID/managemanycontacts"""
10299
_id = "$list_ID"
103100
return mailjet30.contactslist_managemanycontacts.get(id=_id)
104101

0 commit comments

Comments
 (0)