Skip to content

Commit

Permalink
tweaks to older code checks (#688)
Browse files Browse the repository at this point in the history
* tweaks to older code checks

* line length uniformity
  • Loading branch information
Nathanjp91 authored Oct 17, 2023
1 parent e958307 commit 677329f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deploy/_filter_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 677329f

Please sign in to comment.