3 Commits
Author SHA1 Message Date
Maksim IvanovandGitHub 30f4f5a20a [style] Import find-files-for-linting Python code (#1045)
Change the users of the find-files-for-linting.py Python code
(eslient.py and format-code.py) to import it as a Python module rather
than run as a subprocess.

This should avoid unnecessary overhead and data conversions. The change
renames the file to "find_files_for_linting.py" as dashes in file names
aren't Python-friendly.
2023-09-11 16:51:46 +02:00
Maksim IvanovandGitHub b4b8ef7897 [style] format-code check-only mode (#1043)
Add new parameter "--check-only" to the format-code.py script.

It's primarily intended to be used in automated checks, like CI actions,
for checking for improperly-formatted code.
2023-09-11 14:05:44 +02:00
Maksim IvanovandGitHub 1fee33232f [style] format-code in Python, supports --base (#1024)
Rewrite the format-code Shell script into Python, and make it support
"--base=..." argument.

The refactoring is for better maintainability, and the "--base" arg
allows reformatting the whole repository instead of the current diff.
2023-09-08 13:09:13 +02:00