From 677329f46f4eb7071f9f0cb9f4c6100f028060b3 Mon Sep 17 00:00:00 2001 From: Nathan Perkins Date: Tue, 17 Oct 2023 13:57:31 +0100 Subject: [PATCH] tweaks to older code checks (#688) * tweaks to older code checks * line length uniformity --- deploy/_filter_files.py | 2 +- pyproject.toml | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/deploy/_filter_files.py b/deploy/_filter_files.py index 23856c96d..c1777b0df 100755 --- a/deploy/_filter_files.py +++ b/deploy/_filter_files.py @@ -11,7 +11,7 @@ def main(argv: List[str]) -> None: if file_extension.startswith("."): file_extension = file_extension[1:] - files_out = [file for file in files_in if file.endswith(f".{file_extension}")] + files_out = [file for file in files_in if file.endswith(f".{file_extension}") and 'future' in file] print(" ".join(files_out)) diff --git a/pyproject.toml b/pyproject.toml index 076126891..75362bb10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,16 +57,15 @@ warn_untyped_fields = true [tool.ruff] select = ["E", "F", "C"] ignore = ["E203", "E402"] -line-length = 160 +line-length = 88 [tool.ruff.per-file-ignores] "__init__.py" = ["E402", "F401"] -"path/to/file.py" = ["E402"] -"**/{tests,docs,tools}/*" = ["E402"] -"darwin/future/tests/*" = ["F403"] +"**/{tests,docs,tools}/*" = ["E402", "F403"] + [tool.flake8] -max-line-length = 160 +max-line-length = 88 ignore = ["E203", "W503", "E402"] [tool.poetry.dependencies]