Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweaks to older code checks #688

Merged
merged 2 commits into from
Oct 17, 2023
Merged

tweaks to older code checks #688

merged 2 commits into from
Oct 17, 2023

Conversation

Nathanjp91
Copy link
Contributor

Problem

typechecking should ignore older code for now until better system can be merged

Solution

typechecking no longer enforces on older code

Changelog

typechecking no longer enforces on older code

@@ -11,7 +11,7 @@ def main(argv: List[str]) -> None:
if file_extension.startswith("."):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is used by other steps as well as typechecking, so will affect those too - is that deliberate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is meant to stop it forcing people to rewrite a whole file as per ruff/black guidelines for code in the older modules, as our discussion on thursday/friday.


[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"path/to/file.py" = ["E402"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was this even doing here?

Copy link
Contributor

@owencjones owencjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved after discussion

@Nathanjp91 Nathanjp91 merged commit 677329f into master Oct 17, 2023
13 checks passed
@owencjones owencjones deleted the ruff_tweaks branch October 17, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants