change max_line_length in pylama.ini
This commit is contained in:
parent
53fa8caf1e
commit
5bb83c2a09
|
@ -100,7 +100,7 @@ class Database:
|
||||||
|
|
||||||
def find_feed_subscribers(self, feed_id: int) -> list[int]:
|
def find_feed_subscribers(self, feed_id: int) -> list[int]:
|
||||||
"""Return feed subscribers"""
|
"""Return feed subscribers"""
|
||||||
self.cur.execute('SELECT telegram_id FROM users WHERE id IN (SELECT user_id FROM subscriptions WHERE feed_id = ?)',
|
self.cur.execute('SELECT telegram_id FROM users WHERE id IN (SELECT user_id FROM subscriptions WHERE feed_id = ?)',
|
||||||
[feed_id])
|
[feed_id])
|
||||||
subscribers = self.cur.fetchall()
|
subscribers = self.cur.fetchall()
|
||||||
return list(map(lambda x: x['telegram_id'], subscribers))
|
return list(map(lambda x: x['telegram_id'], subscribers))
|
||||||
|
|
|
@ -6,9 +6,9 @@ linters = pyflakes,pylint,pycodestyle
|
||||||
ignore = F0401,C0114,R0903,C0115,C0116,W0511
|
ignore = F0401,C0114,R0903,C0115,C0116,W0511
|
||||||
|
|
||||||
[pylama:pylint]
|
[pylama:pylint]
|
||||||
max_line_length = 120
|
max_line_length = 130
|
||||||
score = yes
|
score = yes
|
||||||
|
|
||||||
[pylama:pycodestyle]
|
[pylama:pycodestyle]
|
||||||
# Maximum length of each line
|
# Maximum length of each line
|
||||||
max_line_length = 120
|
max_line_length = 130
|
||||||
|
|
Loading…
Reference in a new issue