two converter py files needs basicConfig() added#7070
two converter py files needs basicConfig() added#7070mofosyne wants to merge 1 commit intoggml-org:masterfrom
Conversation
|
@ggerganov you can merge this in or just copy and paste to your working repo to get going again. |
35f98ff to
3f96d53
Compare
|
Thanks, I did something similar already in #7036 I've blacklisted 2 scripts from the lint because the prints in those need to be alone on the line without function prefix. If there is a way to fix this and still use the logger, we re-enable the lint: |
|
if it's just a line or two then you can use Refer to https://flake8.pycqa.org/en/latest/user/violations.html#in-line-ignoring-errors for more information |
|
Closing as @ggerganov already did it, but note that he may still want to set the chmod for that script and fix |
|
As a FYI, you can [flake8]
max-line-length = 125
ignore = E203,E211,E221,E225,E231,E241,E251,E261,E266,E501,E701,E704,W503
- exclude = examples/*,examples/*/**,*/**/__init__.py
+ exclude =
+ # Do not traverse examples
+ examples,
+ # Do not include package initializers
+ __init__.py,
+ # No need to traverse our git directory
+ .git,
+ # There's no value in checking cache directories
+ __pycache__,
+ # No need to include the build path
+ build,
+ # This contains builds that we don't want to check
+ dist # This is generated with `python build .` for package releases
+ # max-complexity = 10Makes easier to read and maintain. |
Address for now an issue of two .py file not printing #6511 (comment)
Also made a py file executable.
This is a stopgap fix until ArgumentParser() is added so its easier to add
--verbosemode (which I won't be doing yet, so others can give it a shot)