Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test/gui
diff options
context:
space:
mode:
authorSwikriti Tripathi <41103328+SwikritiT@users.noreply.github.com>2021-05-21 13:35:52 +0300
committerGitHub <noreply@github.com>2021-05-21 13:35:52 +0300
commita64b638468455a6e2edf185578d7c3be3a888d9b (patch)
tree2d7166696d75df881628bc703277d6999606ae83 /test/gui
parent05a51a0dcae058a630ecb0453214744c8175aff1 (diff)
[tests-only] Add makefile for UI test formatting (#8643)
Diffstat (limited to 'test/gui')
-rw-r--r--test/gui/Makefile28
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 .