Skip to content

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

file_extension: str = argv[0]
files_in: List[str] = argv[1:]

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
@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.

3 participants