diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e827114..ebeda05 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,3 +15,4 @@ repos: additional_dependencies: - black~=23.11.0 - isort~=5.9 + - flynt~=0.78 diff --git a/poetry.lock b/poetry.lock index e981336..e1e6289 100644 --- a/poetry.lock +++ b/poetry.lock @@ -11,6 +11,17 @@ files = [ {file = "alabaster-0.7.13.tar.gz", hash = "sha256:a27a4a084d5e690e16e01e03ad2b2e552c61a65469419b907243193de1a84ae2"}, ] +[[package]] +name = "astor" +version = "0.8.1" +description = "Read/rewrite/write Python ASTs" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" +files = [ + {file = "astor-0.8.1-py2.py3-none-any.whl", hash = "sha256:070a54e890cefb5b3739d19f30f5a5ec840ffc9c50ffa7d23cc9fc1a38ebbfc5"}, + {file = "astor-0.8.1.tar.gz", hash = "sha256:6a6effda93f4e1ce9f618779b2dd1d9d84f1e32812c23a29b3fff6fd7f63fa5e"}, +] + [[package]] name = "babel" version = "2.13.1" @@ -315,6 +326,7 @@ files = [ [package.dependencies] black = ">=21.5b1" +flynt = {version = ">=0.76,<0.78", optional = true, markers = "extra == \"flynt\""} toml = ">=0.10.0" [package.extras] @@ -388,6 +400,21 @@ mccabe = ">=0.7.0,<0.8.0" pycodestyle = ">=2.11.0,<2.12.0" pyflakes = ">=3.1.0,<3.2.0" +[[package]] +name = "flynt" +version = "0.76" +description = "CLI tool to convert a python project's %-formatted strings to f-strings." +optional = false +python-versions = ">=3.6" +files = [ + {file = "flynt-0.76-py3-none-any.whl", hash = "sha256:fc122c5f589b0c4d019d7d33597f4925fd886a8e6fb3cbadb918e4baa3661687"}, + {file = "flynt-0.76.tar.gz", hash = "sha256:7a99c5a550ea9e8c21203f6999ed8ce69cbad7bc8465268469777cf06413193a"}, +] + +[package.dependencies] +astor = "*" +tomli = ">=1.1.0" + [[package]] name = "identify" version = "2.5.32" @@ -1065,4 +1092,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = ">=3.8.1,<=3.12" -content-hash = "c5aca1a58d16fcdf21692c1862b71a77039b2794e8b3c394cc7a5248e1576847" +content-hash = "e5103e1a1dc9bb45d53876be45ef87ceeadf0a6f92b984c6de468037209e2667"