[UPD] black format version 22.3.0

This commit is contained in:
Mathieu Benoit 2022-03-29 14:05:19 -04:00
parent 28ae311645
commit 5040432365
4 changed files with 27 additions and 16 deletions

37
poetry.lock generated
View file

@ -173,7 +173,7 @@ lxml = ["lxml"]
[[package]]
name = "black"
version = "21.6b0"
version = "22.3.0"
description = "The uncompromising code formatter."
category = "main"
optional = false
@ -181,26 +181,25 @@ python-versions = ">=3.6.2"
develop = false
[package.dependencies]
appdirs = "*"
click = ">=7.1.2"
click = ">=8.0.0"
mypy-extensions = ">=0.4.3"
pathspec = ">=0.8.1,<1"
regex = ">=2020.1.8"
toml = ">=0.10.1"
typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\""}
typing-extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""}
pathspec = ">=0.9.0"
platformdirs = ">=2"
tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}
typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\" and implementation_name == \"cpython\""}
typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""}
[package.extras]
colorama = ["colorama (>=0.4.3)"]
d = ["aiohttp (>=3.6.0)", "aiohttp-cors (>=0.4.0)"]
python2 = ["typed-ast (>=1.4.2)"]
d = ["aiohttp (>=3.7.4)"]
jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"]
uvloop = ["uvloop (>=0.15.2)"]
[package.source]
type = "git"
url = "https://github.com/psf/black.git"
reference = "21.6b0"
resolved_reference = "93c10bf9ebccf8d7cc686b0b9579f2e5e41c5328"
reference = "22.3.0"
resolved_reference = "ae2c0758c9e61a385df9700dc9c231bf54887041"
[[package]]
name = "bokeh"
@ -2762,6 +2761,14 @@ category = "main"
optional = false
python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]]
name = "tomli"
version = "2.0.1"
description = "A lil' TOML parser"
category = "main"
optional = false
python-versions = ">=3.7"
[[package]]
name = "toolz"
version = "0.11.2"
@ -3133,7 +3140,7 @@ python-versions = "*"
[metadata]
lock-version = "1.1"
python-versions = "^3.7.12"
content-hash = "3d14a75802c3dd086983e018678c8958456edda2241a8cf3cac4dea62c4b5fb6"
content-hash = "2db33749ac40b29c90384af08533abb5495f80d903435d7a802496780217ef7c"
[metadata.files]
agithub = [
@ -4997,6 +5004,10 @@ toml = [
{file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"},
{file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"},
]
tomli = [
{file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"},
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
]
toolz = [
{file = "toolz-0.11.2-py3-none-any.whl", hash = "sha256:a5700ce83414c64514d82d60bcda8aabfde092d1c1a8663f9200c07fdcc6da8f"},
{file = "toolz-0.11.2.tar.gz", hash = "sha256:6b312d5e15138552f1bda8a4e66c30e236c831b612b2bf0005f8a1df10a4bc33"},

View file

@ -178,7 +178,7 @@ websocket_client = "^1.1.0"
[tool.poetry.dependencies.black]
git = "https://github.com/psf/black.git"
rev = "21.6b0"
rev = "22.3.0"
[tool.poetry.dependencies.pylint-odoo]
git = "https://github.com/oca/pylint-odoo.git"

View file

@ -45,7 +45,7 @@ xmlformatter
html5print
css-html-prettify
BeautifulSoup4
git+https://github.com/psf/black.git@21.6b0
git+https://github.com/psf/black.git@22.3.0
isort
# For updating poetry

View file

@ -2,7 +2,7 @@
# This will format all python file
# argument 1: directory or file to format
source ./.venv/bin/activate
black -l 79 --experimental-string-processing -t py37 $@
black -l 79 --preview -t py37 $@
retVal=$?
if [[ $retVal -ne 0 ]]; then
echo "Error black format"