Skip to content

address them all#179

Merged
casperdcl merged 7 commits intomasterfrom
misc_fixes
Jun 4, 2016
Merged

address them all#179
casperdcl merged 7 commits intomasterfrom
misc_fixes

Conversation

@casperdcl
Copy link
Copy Markdown
Member

@casperdcl casperdcl commented Jun 2, 2016

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jun 2, 2016

Current coverage is 98.66%

Merging #179 into master will decrease coverage by 1.33%

  1. File ...dm/_tqdm_notebook.py (not in diff) was modified. more
    • Misses +6
    • Partials 0
    • Hits -6
@@             master       #179   diff @@
==========================================
  Files             8          8          
  Lines           447        449     +2   
  Methods           0          0          
  Messages          0          0          
  Branches         80         80          
==========================================
- Hits            447        443     -4   
- Misses            0          6     +6   
  Partials          0          0          

Powered by Codecov. Last updated by 5f7c7e4...8b5a87e

@coveralls
Copy link
Copy Markdown

coveralls commented Jun 2, 2016

Coverage Status

Coverage decreased (-1.3%) to 98.664% when pulling 8b5a87e on misc_fixes into 5f7c7e4 on master.

@lrq3000
Copy link
Copy Markdown
Member

lrq3000 commented Jun 2, 2016

Ow, that's interesting, tqdm_notebook is not at all covered now, is it because of the pragma no cover in the adapters or because the import is correctly delayed and thus coverage can't access the module?

I agree with this PR, it can be merged (after adding pragma no cover to tqdm_notebook). I would prefer to generalize the delayed/lazy import for all modules, but that will do for a quick fix, it can be enhanced later.

@casperdcl casperdcl changed the title Misc fixes address them all Jun 2, 2016
@casperdcl casperdcl added p0-bug-critical ☢ Exception rasing p3-enhancement 🔥 Much new such feature and removed p0-bug-critical ☢ Exception rasing p3-enhancement 🔥 Much new such feature labels Jun 2, 2016
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 2, 2016

Coverage Status

Coverage decreased (-1.3%) to 98.664% when pulling f492111 on misc_fixes into 5f7c7e4 on master.

Comment thread tqdm/_utils.py
IS_WIN = CUR_OS in ['Windows', 'cli']
IS_NIX = (not IS_WIN) and any(
CUR_OS.startswith(i) for i in
['CYGWIN', 'MSYS', 'Linux', 'Darwin', 'SunOS', 'FreeBSD'])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if I were you I would have added .lower() and kept actual literals for comparison in lower case.

-- said yarikoptic and then looked at his own code which doesn't (yet) do that ;)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be safer just to IS_NIX = not IS_WIN? ;-)

Copy link
Copy Markdown
Member Author

@casperdcl casperdcl Jun 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't want lower to encourage consistency. platform.system() should never equal, for example, windows or wIndoWs. Also we can't assume all systems which we fail to detect as windows systems are unix. I'd be happier to add "if neither nix nor win, print warning"

@casperdcl
Copy link
Copy Markdown
Member Author

casperdcl commented Jun 3, 2016

I'm not a fan of adding pragma no cov to code which strictly speaking should be covered... Is there no way to test widgets? redirect html output etc? I realise this was probably asked before @lrq3000

@coveralls
Copy link
Copy Markdown

coveralls commented Jun 4, 2016

Coverage Status

Coverage decreased (-1.3%) to 98.664% when pulling 7b30463 on misc_fixes into 5f7c7e4 on master.

@lrq3000
Copy link
Copy Markdown
Member

lrq3000 commented Jul 3, 2016

@casperdcl Sorry for the delayed answer. Yes it is possible but way too complicated at this stage for me. We need to simulate a fake JS server and IPython API mockup, like the ipywidgets project does. I tried to replicate what they did but it was way over my head...

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.

5 participants