зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 13:06:13 +02:00
fix lint
Этот коммит содержится в:
родитель
e3e1ee18fe
Коммит
8f9f418a6c
6
Makefile
6
Makefile
@ -27,8 +27,10 @@ pylint:
|
||||
test:
|
||||
@pytest -s --cov=twscrape tests/
|
||||
|
||||
get-cov:
|
||||
@coverage report -m
|
||||
show-cov:
|
||||
@pytest -s --cov=twscrape tests/
|
||||
@coverage html
|
||||
@open htmlcov/index.html
|
||||
|
||||
act:
|
||||
@act --container-architecture linux/amd64
|
||||
|
||||
@ -12,8 +12,8 @@ from .utils import utc_ts
|
||||
|
||||
|
||||
def guess_delim(line: str):
|
||||
l, r = [x.strip() for x in line.split("username")]
|
||||
return r[0] if not l else l[-1]
|
||||
lp, rp = tuple([x.strip() for x in line.split("username")])
|
||||
return rp[0] if not lp else lp[-1]
|
||||
|
||||
|
||||
class AccountsPool:
|
||||
|
||||
@ -76,7 +76,7 @@ def custom_help(p):
|
||||
|
||||
cmd = msg.split("positional arguments:")[1].strip().split("\n")[0]
|
||||
msg = msg.replace("positional arguments:", "commands:")
|
||||
msg = [x for x in msg.split("\n") if not cmd in x and not "..." in x]
|
||||
msg = [x for x in msg.split("\n") if cmd not in x and "..." not in x]
|
||||
msg[0] = f"{msg[0]} <command> [...]"
|
||||
|
||||
i = 0
|
||||
|
||||
Загрузка…
x
Ссылка в новой задаче
Block a user