From fb77ea266e7b9729924c26ff0ea2fcb229bae4a5 Mon Sep 17 00:00:00 2001 From: patnr Date: Mon, 1 Jul 2024 17:52:46 +0200 Subject: [PATCH] Fix lint --- dapper/xp_process.py | 2 +- pyproject.toml | 2 +- setup.py | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dapper/xp_process.py b/dapper/xp_process.py index 715a2809..d27387fd 100644 --- a/dapper/xp_process.py +++ b/dapper/xp_process.py @@ -298,7 +298,7 @@ def label_xSection(self, label, *NoneAttrs, **sub_coord): for coord in self.coords_matching(**self.intersect_dims(sub_coord)): entry = copy.deepcopy(self[coord]) coord = coord._replace(xSect=label) - coord = coord._replace(**{a: None for a in NoneAttrs}) + coord = coord._replace(**{a: None for a in NoneAttrs}) # noqa self[coord] = entry diff --git a/pyproject.toml b/pyproject.toml index 3cdb5041..e0724038 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,7 @@ max_line_length = 88 ignore = "W6" [tool.flakeheaven] -exclude = [".*", "README.*", "examples/*.ipynb", "autoscaler.py"] +exclude = [".*", "README.*", "examples/*.ipynb", "autoscaler.py", "build"] max_line_length = 88 format = "grouped" # also try "stat" show_source = false diff --git a/setup.py b/setup.py index a00e4a01..c6b200d9 100755 --- a/setup.py +++ b/setup.py @@ -46,7 +46,10 @@ 'pytest-cov', 'pytest-sugar', 'pytest-benchmark', 'pytest-clarity', 'pytest-xdist', 'pytest-timeout'], 'lint': ['flake8<5', # https://github.com/flakeheaven/flakeheaven/issues/132 - 'flakeheaven', 'autopep8'], + 'flakeheaven', 'autopep8', + 'flake8-docstrings', 'flake8-bugbear', 'flake8-comprehensions', + 'flake8-isort', 'flake8-builtins', 'pep8-naming', 'flake8-commas', + ], # 'flake8-docstrings', 'flake8-bugbear', 'flake8-comprehensions'], 'build': ['twine', 'pdoc', 'jupytext'], }