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
diff options
context:
space:
mode:
authorSwikriti Tripathi <41103328+SwikritiT@users.noreply.github.com>2021-05-19 12:48:58 +0300
committerGitHub <noreply@github.com>2021-05-19 12:48:58 +0300
commitb62327684fdba90211a9efe29dd98f4c12d8284e (patch)
tree401d34e1e247691ae44d2985c1350cffe30d0bce /pyproject.toml
parente4d0fab991e8719b732ef4c059e8199953b05e33 (diff)
Implement black tool to reformat code according to python standard (#8636)
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml17
1 files changed, 17 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 000000000..947798fdf
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,17 @@
+# configuration for Black.
+
+# NOTE: you have to use single-quoted strings in TOML for regular expressions.
+# It's the equivalent of r-strings in Python. Multiline strings are treated as
+# verbose regular expressions by Black. Use [ ] to denote a significant space
+# character.
+
+[tool.black]
+line-length = 88
+target-version = ['py36', 'py37', 'py38']
+include = '\.pyi?$'
+skip-string-normalization = true
+extend-exclude = '''
+# A regex preceded with ^/ will apply only to files and directories
+# in the root of the project.
+/test/gui/shared/scripts/names.py
+''' \ No newline at end of file