Commit 00decbf9 authored by intrigeri's avatar intrigeri
Browse files

lint_po: skip files in ./tmp/ (Closes: #16864)

parent 3892297b
......@@ -30,6 +30,7 @@ import argparse
import contextlib
import functools
import glob
import itertools
import logging
import multiprocessing
import os.path
......@@ -269,6 +270,10 @@ def main(logger) -> None:
if not args.files and not args.cached and not args.lang:
args.files += glob.glob("**/*.po", recursive=True)
# Skip files in ./tmp/
args.files = list(itertools.filterfalse(lambda f: f.startswith('tmp/'),
if not args.files:
logger.warning("no file to process :("
" You may want to add files to operate on. See --help for further information.")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment