Skip to content

Commit 68890a4

Browse files
[INFRA] New attempt to silence LGTM false positive
Previous commit bb6065a from #853 does not work around the LGTM alert. We attempt to silence the LGTM alert using an lgtm.yml file, and use standard Flake8 noqa suppression comments to document the issue at hand.
1 parent f21e9b2 commit 68890a4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lgtm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
queries:
2+
# https://github.com/github/codeql/issues/6517
3+
- exclude: py/unused-import

pdf_build_src/process_markdowns.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
import numpy as np
1717

1818
sys.path.append("../tools/")
19-
from mkdocs_macros_bids import macros # noqa (used in "eval" call later on)
19+
# functions from module macros are called by eval() later on
20+
from mkdocs_macros_bids import macros # noqa: F401
2021

2122

2223
def run_shell_cmd(command):

0 commit comments

Comments
 (0)