From 82cd2c4c51928538d7f16883e87cbea7fb346a14 Mon Sep 17 00:00:00 2001 From: Nathan Perkins Date: Tue, 17 Oct 2023 13:32:41 +0100 Subject: [PATCH 1/2] tweaks to older code checks --- deploy/_filter_files.py | 2 +- pyproject.toml | 5 ++--- 2 files changed, 3 insertions(+), 4 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..f4627dc46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,9 +61,8 @@ line-length = 160 [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 From f08c3f02714a27381272c69787b57abb007969fa Mon Sep 17 00:00:00 2001 From: Nathan Perkins Date: Tue, 17 Oct 2023 13:37:56 +0100 Subject: [PATCH 2/2] line length uniformity --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f4627dc46..75362bb10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ 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"] @@ -65,7 +65,7 @@ line-length = 160 [tool.flake8] -max-line-length = 160 +max-line-length = 88 ignore = ["E203", "W503", "E402"] [tool.poetry.dependencies]