From 92f41ddaab4d4a34db1f54cc8d71466f4f275fa6 Mon Sep 17 00:00:00 2001 From: Kyle Finley Date: Mon, 26 Jul 2021 11:55:29 -0400 Subject: [PATCH] use flake8-use-fstring (#97) --- .pre-commit-config.yaml | 1 + .vscode/cspell.json | 5 ++++- poetry.lock | 21 ++++++++++++++++++++- pyproject.toml | 1 + 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cd02289..4cbd5cb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -67,6 +67,7 @@ repos: - flake8-comprehensions - flake8-docstrings - flake8-print + - flake8-use-fstring - nitpick - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.27.1 diff --git a/.vscode/cspell.json b/.vscode/cspell.json index fab35c8..3a1e737 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -52,5 +52,8 @@ ], "language": "en", "maxNumberOfProblems": 100, - "version": "0.1" + "version": "0.1", + "words": [ + "fstring" + ] } diff --git a/poetry.lock b/poetry.lock index c2fcbf0..d6fcd13 100644 --- a/poetry.lock +++ b/poetry.lock @@ -291,6 +291,22 @@ flake8 = ">=3.0" pycodestyle = "*" six = "*" +[[package]] +name = "flake8-use-fstring" +version = "1.1" +description = "Flake8 plugin for string formatting style." +category = "dev" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +flake8 = ">=3.0.0,<4.0.0" + +[package.extras] +ci = ["coverage (>=4.0.0,<5.0.0)", "pytest (>=4)", "pytest-cov (>=2)", "flake8-builtins", "flake8-commas", "flake8-fixme", "flake8-print", "flake8-quotes", "flake8-todo", "python-coveralls"] +dev = ["coverage (>=4.0.0,<5.0.0)", "pytest (>=4)", "pytest-cov (>=2)", "flake8-builtins", "flake8-commas", "flake8-fixme", "flake8-print", "flake8-quotes", "flake8-todo"] +test = ["coverage (>=4.0.0,<5.0.0)", "pytest (>=4)", "pytest-cov (>=2)", "flake8-builtins", "flake8-commas", "flake8-fixme", "flake8-print", "flake8-quotes", "flake8-todo"] + [[package]] name = "identify" version = "2.2.5" @@ -1003,7 +1019,7 @@ python-versions = "*" [metadata] lock-version = "1.1" python-versions = "^3.8" -content-hash = "3f6262caf78ad3ff9a735a44e74940e56d223f30da2a38910b89813a7967ae3c" +content-hash = "7e5249056120345fac4562f9358b3768b0cd75386a40e39305010fe3b7bc8869" [metadata.files] alabaster = [ @@ -1165,6 +1181,9 @@ flake8-print = [ {file = "flake8-print-4.0.0.tar.gz", hash = "sha256:5afac374b7dc49aac2c36d04b5eb1d746d72e6f5df75a6ecaecd99e9f79c6516"}, {file = "flake8_print-4.0.0-py3-none-any.whl", hash = "sha256:6c0efce658513169f96d7a24cf136c434dc711eb00ebd0a985eb1120103fe584"}, ] +flake8-use-fstring = [ + {file = "flake8-use-fstring-1.1.tar.gz", hash = "sha256:a0eea849ffe33fb6903c210c243c0f418da86a530e46cb13e64f1bdb045f22dc"}, +] identify = [ {file = "identify-2.2.5-py2.py3-none-any.whl", hash = "sha256:9c3ab58543c03bd794a1735e4552ef6dec49ec32053278130d525f0982447d47"}, {file = "identify-2.2.5.tar.gz", hash = "sha256:bc1705694253763a3160b943316867792ec00ba7a0ee40b46e20aebaf4e0c46a"}, diff --git a/pyproject.toml b/pyproject.toml index 540c0ed..d9168f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ flake8-bugbear = "^21.4.3" # flake8 plugin flake8-comprehensions = "^3.5.0" # flake8 plugin flake8-docstrings = "^1.6.0" # flake8 plugin flake8-print = "^4.0.0" # flake8 plugin +flake8-use-fstring = "^1.1" # flake8 plugin isort = "^5.9.2" mock = "^4.0.3" nitpick = "^0.27.0" # flake8 plugin