From 3e73ed26247097a434f2ad9161dd38c0051a2556 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sat, 9 Mar 2024 13:29:53 -0800 Subject: [PATCH] Exclude file that Black can't parse psf/black#4270 --- src/diff_shades/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/diff_shades/config.py b/src/diff_shades/config.py index c6fe7dd..ef3bc93 100644 --- a/src/diff_shades/config.py +++ b/src/diff_shades/config.py @@ -62,7 +62,12 @@ def supported_by_runtime(self) -> bool: Project("pyanalyze", "https://github.com/quora/pyanalyze.git"), Project("pyramid", "https://github.com/Pylons/pyramid.git"), Project("pytest", "https://github.com/pytest-dev/pytest.git"), - Project("scikit-lego", "https://github.com/koaning/scikit-lego.git"), + Project( + "scikit-lego", + "https://github.com/koaning/scikit-lego.git", + # Uses Python 3.12+ f-string syntax, not yet supported by Black + custom_arguments=["--extend-exclude", "/docs/_scripts/feature-selection.py"], + ), Project("sqlalchemy", "https://github.com/sqlalchemy/sqlalchemy.git"), Project("tox", "https://github.com/tox-dev/tox.git"), Project("typeshed", "https://github.com/python/typeshed.git"),