Repository navigation
Conversation
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
…ones as config errors
| ZERO_PARTIAL_RATIO = 0.05 | ||
|
|
||
| # Node types whose durations must not all be zero | ||
| CHECKED_TYPES = { |
There was a problem hiding this comment.
what about the new data_op and storage_op types? maybe add a note in #222 to ensure updating the linter is an exit criteria as kaitracer is introduced?
There was a problem hiding this comment.
does it make sense to break up this single file of thousands of lines into more logical files (e.g. key data classes that may require touch as future extension to schemas in separate files??) and the linter is just the main entry point that is essentially the cli that ties the parts together? otherwise, this file will just keep growing as we go forward.
There was a problem hiding this comment.
suggest in addition to the end user flow in the readme, to also add an additional section for developers who will be touching the code, on what parts they may need to touch (think the use case of future schema extensions)...
|
Closing this PR without merging. Reason
Benefit of the refactoring
Status
Reviewer action
|
Closes #254
Summary
chakra_linter, a standalone command-line tool that grades Chakra execution traces (.etfiles) for usability.Problem
Changes
mainentry point.rules.toml.chakra_linterscript, thechakra.src.linterpackage, and the rule files as package data.jsonschema==4.21.1andmarkdown==3.11.2.rules.tomlvalidation.Grading Model
Usage
.etfiles or directories.Testing
ruff formatandruff checkpasspytest tests/linterpassesNotes for Reviewers
linter.py,rules.toml, andrules.schema.jsonform one contract. Review them together.