We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b277b commit 10a32d8Copy full SHA for 10a32d8
python/lsst/sconsUtils/tests.py
@@ -364,10 +364,14 @@ def runPythonLinter(self):
364
for path in glob.glob(os.path.join(self._tmpDir, "linter-*.log*")):
365
os.unlink(path)
366
367
+ # Always exclude the tests output directory. This should never be
368
+ # examined.
369
+ lint_options = "--extend-exclude=tests/.tests"
370
+
371
cmd = f"""
372
@printf "%s\\n" 'Running python linter {linter}...';
373
@rm -f ${{TARGET}} ${{TARGET}}.failed;
- @({linter} . > ${{TARGET}}); \
374
+ @({linter} {lint_options} . > ${{TARGET}}); \
375
export rc="$?"; \
376
if [ "$$rc" -eq 0 ]; then \
377
echo "Python linting completed successfully"; \
0 commit comments