diff options
author | Swikriti Tripathi <41103328+SwikritiT@users.noreply.github.com> | 2021-05-21 13:35:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 13:35:52 +0300 |
commit | a64b638468455a6e2edf185578d7c3be3a888d9b (patch) | |
tree | 2d7166696d75df881628bc703277d6999606ae83 /test/gui | |
parent | 05a51a0dcae058a630ecb0453214744c8175aff1 (diff) |
[tests-only] Add makefile for UI test formatting (#8643)
Diffstat (limited to 'test/gui')
-rw-r--r-- | test/gui/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/gui/Makefile b/test/gui/Makefile new file mode 100644 index 000000000..683876310 --- /dev/null +++ b/test/gui/Makefile @@ -0,0 +1,28 @@ +# Main Makefile for formatting python code for gui test +# +# Requirements to run make here: +# - black +# +# Installing black can be done via https://black.readthedocs.io/en/stable/getting_started.html +# configuration for black can be found inside pyproject.toml file under [tools.black] section. +# +# Usage: +# make test-python-style +# -auto format all the python files inside `test/gui` +# make test-python-style-check +# -check which files will be reformatted +# make test-python-style-diff +# -see what changes will be done +# + +.PHONY: test-python-style +test-python-style: + black . + +.PHONY: test-python-style-diff +test-python-style-diff: + black --diff . + +.PHONY: test-python-style-check +test-python-style-check: + black --check . |