-
Notifications
You must be signed in to change notification settings - Fork 4
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
[NEAT-62] Cleanup Validation -> Issues Module #314
Conversation
@@ -0,0 +1,27 @@ | |||
from . import dms, fileread, formatters, importing, spreadsheet, spreadsheet_file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice org
|
||
|
||
@dataclass(frozen=True, order=True) | ||
class ClassNoPropertiesNoParentsWarning(ValidationWarning): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are couple of issues which depending on the use case can be warning or error. Is this possible with the current setup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then, you would have to duplicate have one error and one warning version of the issue.
Most of the code is moving round existing classes and renaming. That accounts for most of the changes in code-lines.
Changes:
rules.valiadion
torules.issues
__init__.py
and make all submodules of the newrules.issues
public such that you can use the modules for navigation. E.g.from cognite.neat.rules import issues
and thenissues.dms.MissingSpacesError
.Error
and all warnings have suffixWarning
. Introduced test to enforce this standard.