Skip to content

Commit 9e16e4f

Browse files
committed
Fix pylint.
1 parent 7c7b665 commit 9e16e4f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tasks.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@
2525
def lint(c):
2626
"Run pylint on lute/ and tests/."
2727
# Formats: https://pylint.pycqa.org/en/latest/user_guide/usage/output.html
28-
msgfmt = "--msg-template='{path} ({line:03d}): {msg} ({msg_id} {symbol})'"
29-
c.run(f"pylint {msgfmt} tasks.py lute/ tests/")
28+
msgfmt = [
29+
"--ignore-patterns='zz_.*.py'",
30+
"--msg-template='{path} ({line:03d}): {msg} ({msg_id} {symbol})'",
31+
]
32+
c.run(f"pylint {' '.join(msgfmt)} tasks.py lute/ tests/")
3033

3134

3235
@task

tests/unit/language/test_service.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def test_get_language_def():
2929
assert lang.show_romanization is False, "uses default"
3030
assert lang.right_to_left is False, "uses default"
3131

32+
# pylint: disable=line-too-long
3233
expected = [
3334
"terms; embeddedhtml; https://simple.wiktionary.org/wiki/###; True; 1",
3435
"terms; popuphtml; https://www.collinsdictionary.com/dictionary/english/###; True; 2",

0 commit comments

Comments
 (0)