From f7b4a5006268242c1f9da54ef6ee2fbea19f85d9 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Sun, 14 May 2023 14:10:08 -0700 Subject: [PATCH] ruff enable flynt --- pymatgen/ext/matproj.py | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pymatgen/ext/matproj.py b/pymatgen/ext/matproj.py index d17ad26b90d..1b828bfa511 100644 --- a/pymatgen/ext/matproj.py +++ b/pymatgen/ext/matproj.py @@ -1568,7 +1568,7 @@ def get_interface_reactions( `pymatgen.analysis.reaction_calculator.Reaction`. """ payload = { - "reactants": " ".join([reactant1, reactant2]), + "reactants": f"{reactant1} {reactant2}", "open_el": open_el, "relative_mu": relative_mu, "use_hull_energy": use_hull_energy, diff --git a/pyproject.toml b/pyproject.toml index 0ac113e4174..3441bd9050b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,7 @@ select = [ "D", # pydocstyle "E", # pycodestyle error "F", # pyflakes + "FLY", # flynt "I", # isort "ICN", # flake8-import-conventions "ISC", # flake8-implicit-str-concat