From ffe57e5f3ea50cc81ae51ea01d1e03ae68859c51 Mon Sep 17 00:00:00 2001 From: teddygroves Date: Tue, 26 Mar 2024 17:08:06 +0100 Subject: [PATCH] fix black --- .pre-commit-config.yaml | 4 ++-- maud/data_model/maud_input.py | 6 +++--- pyproject.toml | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1e1f63c8..75eb069e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: check-merge-conflict - id: detect-private-key - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 24.3.0 hooks: - id: black - repo: https://github.com/pycqa/isort @@ -19,6 +19,6 @@ repos: name: isort (python) - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.278 + rev: v0.3.4 hooks: - id: ruff diff --git a/maud/data_model/maud_input.py b/maud/data_model/maud_input.py index 50c3f0b8..b5104414 100644 --- a/maud/data_model/maud_input.py +++ b/maud/data_model/maud_input.py @@ -70,9 +70,9 @@ def inits_dict(self) -> Dict: inits_dict[param.name] = param.inits.inits_unscaled if param.inits.inits_scaled is not None: scaled_pref = "log_" if param.non_negative else "" - inits_dict[ - scaled_pref + param.name + "_z" - ] = param.inits.inits_scaled + inits_dict[scaled_pref + param.name + "_z"] = ( + param.inits.inits_scaled + ) if param.fixed_ids is not None: met_to_init = dict( zip(param.inits.ids[0], param.inits.inits_unscaled) diff --git a/pyproject.toml b/pyproject.toml index 7377a273..4bb2ad14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,7 +85,6 @@ packages = [ [tool.black] line-length = 80 -python-version = ['py38', 'py39'] exclude = ''' ( __init__.py