summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2023-10-13 12:33:01 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-10-13 12:44:18 +0200
commit70521339d9368477a64b6d1751ad773236b16af3 (patch)
tree54b633c01b206efeedda36129e6920172dc3f041 /manage
parent7ee1d035bf61c4e355b6b54430e74079e0fee1af (diff)
[fix] black --exclude option is a regular expression
When ``searx/static/themes/simple/node_modules`` are installed the test from black runs into this path / Error:: $ make test TEST [yamllint] $YAMLLINT_FILES TEST [black] $BLACK_TARGETS --- searx/static/themes/simple/node_modules/flatted/python/test.py 2023-10-13 10:09:50.460026 +0000 +++ searx/static/themes/simple/node_modules/flatted/python/test.py 2023-10-13 10:10:04.974335 +0000 @@ -1,9 +1,11 @@ from flatted import stringify as _stringify, parse ... black --exclude option is not a comma separated list, its a regular expression / see: $ black --help ... --exclude TEXT A regular expression that matches files and directories that should be excluded on recursive searches ... Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-xmanage2
1 files changed, 1 insertions, 1 deletions
diff --git a/manage b/manage
index 58bafae0..49bfca4b 100755
--- a/manage
+++ b/manage
@@ -44,7 +44,7 @@ PY_SETUP_EXTRAS='[test]'
GECKODRIVER_VERSION="v0.33.0"
# SPHINXOPTS=
BLACK_OPTIONS=("--target-version" "py311" "--line-length" "120" "--skip-string-normalization")
-BLACK_TARGETS=("--exclude" "searx/static,searx/languages.py" "--include" 'searxng.msg|\.pyi?$' "searx" "searxng_extra" "tests")
+BLACK_TARGETS=("--exclude" "(searx/static|searx/languages.py)" "--include" 'searxng.msg|\.pyi?$' "searx" "searxng_extra" "tests")
_dev_redis_sock="/usr/local/searxng-redis/run/redis.sock"
# set SEARXNG_REDIS_URL if it is not defined and "{_dev_redis_sock}" exists.