-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Remove unused functions #295
Conversation
Codecov Report
@@ Coverage Diff @@
## master #295 +/- ##
==========================================
+ Coverage 68.50% 69.61% +1.10%
==========================================
Files 15 15
Lines 2848 2797 -51
Branches 776 764 -12
==========================================
- Hits 1951 1947 -4
+ Misses 721 674 -47
Partials 176 176
Continue to review full report at Codecov.
|
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.
This breaks cwltool
so the version number in setup.py
needs to be increased
ImportError: cannot import name 'strip_dup_lineno' from 'schema_salad.sourceline' (/home/michael/schema_salad/schema_salad/sourceline.py)
A failure from another part of
Can this be avoided? |
OK, I will send a PR to cwltool. |
I found that the exceptions in cwltool are not structured... |
@mr-c Can I change this request to I found that this request includes two types of unused functions:
We can safely remove the former but currently it is difficult to remove the latter because they are mainly used to reformat the exception messages. To remove them, it is better to move the exceptions in cwltool to tree structured exceptions but it needs more work than this request want to do. |
yes |
Done! Now this request only removes |
I dismiss it because now strip_dup_lineno
is not removed.
Thanks! |
By introducing tree structure exceptions, several functions and several function parameters are no longer used.
This request removes the following.
reformat_yaml_exception_message
ruamel
parser are wrapped withSchemaSaladException
regex_chunk
,chunk_messages
,indent
,bullets
,strip_dup_lineno
insourceline.py
strip_duplicated_lineno
,reflow_all
, andSchemaSaladException#pretty_str
SourceLine#__enter__
,SourceLine#__exit__
,SourceLine#makeError
raise_type
andinclude_traceback
from the constructor ofSourceLine
SourceLine