diff options
author | Swikriti Tripathi <41103328+SwikritiT@users.noreply.github.com> | 2021-05-19 12:48:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 12:48:58 +0300 |
commit | b62327684fdba90211a9efe29dd98f4c12d8284e (patch) | |
tree | 401d34e1e247691ae44d2985c1350cffe30d0bce /pyproject.toml | |
parent | e4d0fab991e8719b732ef4c059e8199953b05e33 (diff) |
Implement black tool to reformat code according to python standard (#8636)
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 17 |
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 |