From 21a16d5f91429cf2a61dcdae45c5448c096123d7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 9 Oct 2026 16:49:25 +0500 Subject: use the match statement --- project/format.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'project/format.py') diff --git a/project/format.py b/project/format.py index f98f726..fc5ae0e 100644 --- a/project/format.py +++ b/project/format.py @@ -101,9 +101,18 @@ def filter_files(paths, exclude): return (path for path in paths if not excluded(path, exclude)) -CPP_FILE_EXTENSIONS = set( - (".c", ".h", ".cc", ".hh", ".cpp", ".hpp", ".cxx", ".hxx", ".cp", ".c++") -) +CPP_FILE_EXTENSIONS = { + ".c", + ".h", + ".cc", + ".hh", + ".cpp", + ".hpp", + ".cxx", + ".hxx", + ".cp", + ".c++", +} def list_cpp_files(): -- cgit v1.3