diff --git a/pandas/io/formats/html.py b/pandas/io/formats/html.py
index ce59985b8f352..b1a3504d46b27 100644
--- a/pandas/io/formats/html.py
+++ b/pandas/io/formats/html.py
@@ -633,7 +633,7 @@ def write_style(self) -> None:
else:
element_props.append(("thead th", "text-align", "right"))
template_mid = "\n\n".join(template_select % t for t in element_props)
- template = dedent("\n".join((template_first, template_mid, template_last)))
+ template = dedent(f"{template_first}\n{template_mid}\n{template_last}")
self.write(template)
def render(self) -> list[str]:
diff --git a/pandas/io/formats/string.py b/pandas/io/formats/string.py
index 769f9dee1c31a..cdad388592717 100644
--- a/pandas/io/formats/string.py
+++ b/pandas/io/formats/string.py
@@ -28,7 +28,7 @@ def __init__(self, fmt: DataFrameFormatter, line_width: int | None = None) -> No
def to_string(self) -> str:
text = self._get_string_representation()
if self.fmt.should_show_dimensions:
- text = "".join([text, self.fmt.dimensions_info])
+ text = f"{text}{self.fmt.dimensions_info}"
return text
def _get_strcols(self) -> list[list[str]]:
diff --git a/pyproject.toml b/pyproject.toml
index c28f9259c749c..0fc753debe030 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -229,7 +229,7 @@ select = [
# flake8-gettext
"INT",
# pylint
- "PLC", "PLE", "PLR", "PLW",
+ "PL",
# misc lints
"PIE",
# flake8-pyi
@@ -252,6 +252,10 @@ select = [
"NPY002",
# Perflint
"PERF",
+ # flynt
+ "FLY",
+ # flake8-logging-format
+ "G",
]
ignore = [
@@ -356,7 +360,7 @@ exclude = [
"asv_bench/*" = ["TID", "NPY002"]
# to be enabled gradually
"pandas/core/*" = ["PLR5501"]
-"pandas/tests/*" = ["B028"]
+"pandas/tests/*" = ["B028", "FLY"]
"scripts/*" = ["B028"]
# Keep this one enabled
"pandas/_typing.py" = ["TCH"]
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py
index aab29fce89abe..ffe1e9acd1185 100644
--- a/scripts/tests/test_validate_docstrings.py
+++ b/scripts/tests/test_validate_docstrings.py
@@ -110,10 +110,10 @@ def _import_path(self, klass=None, func=None):
base_path = "scripts.tests.test_validate_docstrings"
if klass:
- base_path = ".".join([base_path, klass])
+ base_path = f"{base_path}.{klass}"
if func:
- base_path = ".".join([base_path, func])
+ base_path = f"{base_path}.{func}"
return base_path
diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index b1b63b469ec3b..0a6a852bb0f85 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -143,7 +143,7 @@ def get_api_items(api_doc_fd):
func = getattr(func, part)
yield (
- ".".join([current_module, line_stripped]),
+ f"{current_module}.{line_stripped}",
func,
current_section,
current_subsection,