Skip to content

MAINT: eliminate some pytest warnings - #5335

Merged
josef-pkt merged 6 commits into
statsmodels:masterfrom
thequackdaddy:warningfilter
Nov 2, 2018
Merged

josef-pkt merged 6 commits into
statsmodels:masterfrom
thequackdaddy:warningfilter

Conversation

@thequackdaddy

Copy link
Copy Markdown
Member

Closes #5329

I also added a -nv option on the wget miniconda.sh because it shrinks the log file a bunch, and that should make it so that the docbuild will take under 10,000 lines, so you can see the entire log on travis without going to the raw log.

@coveralls

coveralls commented Oct 21, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 84.218% when pulling d762486 on thequackdaddy:warningfilter into a14f197 on statsmodels:master.

@codecov

codecov Bot commented Oct 21, 2018 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@a14f197). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5335   +/-   ##
=========================================
  Coverage          ?   81.71%           
=========================================
  Files             ?      569           
  Lines             ?    89769           
  Branches          ?    10022           
=========================================
  Hits              ?    73359           
  Misses            ?    14135           
  Partials          ?     2275
Impacted Files Coverage Δ
statsmodels/stats/_lilliefors.py 83.14% <ø> (ø)
statsmodels/stats/tests/test_corrpsd.py 100% <ø> (ø)
...s/sandbox/distributions/tests/test_multivariate.py 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a14f197...d762486. Read the comment docs.

@bashtage

Copy link
Copy Markdown
Member

Should ideally silence this stuff -- about 1k lines and not really human readable.

----------- coverage: platform linux, python 3.7.0-final-0 -----------
Name                                                                         Stmts   Miss Branch BrPart  Cover   Missing
------------------------------------------------------------------------------------------------------------------------
statsmodels/__init__.py                                                         39     17     10      2    49%   19-27, 35, 40-51, 18->19, 34->35

@bashtage

Copy link
Copy Markdown
Member

I think this needs to add --cov-report= to the coverage options.

@thequackdaddy
thequackdaddy force-pushed the warningfilter branch 3 times, most recently from 508b5aa to 5c640f4 Compare October 21, 2018 21:24
Comment thread statsmodels/base/data.py Resolved
Comment thread statsmodels/base/data.py Resolved
@bashtage

Copy link
Copy Markdown
Member

Git hub is having some issues. About the attr check,

Comment to explain this change? Appears to be panda/numpy interop. Would it be better to be explicit (isinstance) rather than look for attribute that may not be from a DataFrame or Series?

2 similar comments
@bashtage

Copy link
Copy Markdown
Member

Git hub is having some issues. About the attr check,

Comment to explain this change? Appears to be panda/numpy interop. Would it be better to be explicit (isinstance) rather than look for attribute that may not be from a DataFrame or Series?

@bashtage

Copy link
Copy Markdown
Member

Git hub is having some issues. About the attr check,

Comment to explain this change? Appears to be panda/numpy interop. Would it be better to be explicit (isinstance) rather than look for attribute that may not be from a DataFrame or Series?

@thequackdaddy

Copy link
Copy Markdown
Member Author

@bashtage I think github is back. I can revert, but the explanation is above. As a simpler alternative, the test case could be built with a unique index.

@thequackdaddy
thequackdaddy force-pushed the warningfilter branch 2 times, most recently from 0b7c273 to c5a205c Compare October 28, 2018 20:52
@thequackdaddy

Copy link
Copy Markdown
Member Author

Alright. I also had to loosen some of the flake8-ing going on... so apologies to @jbrockmendel and @bashtage who have been adding that. But this passes again.

Comment thread lint.sh Resolved
Comment thread setup.cfg Resolved
@thequackdaddy
thequackdaddy force-pushed the warningfilter branch 2 times, most recently from 69c8477 to d43574c Compare October 29, 2018 02:23
Comment thread setup.cfg Resolved
@thequackdaddy

Copy link
Copy Markdown
Member Author

@josef-pkt Any comments? This will fix travis.

@josef-pkt

Copy link
Copy Markdown
Member

no comments
I haven't caught up with pep-8 enforcement yet.

I will just merge, mainly to get the "ignore" in.

Thanks all

@josef-pkt
josef-pkt merged commit 0f25d54 into statsmodels:master Nov 2, 2018
@thequackdaddy
thequackdaddy deleted the warningfilter branch November 2, 2018 22:12
@jbrockmendel

Copy link
Copy Markdown
Contributor

Main comment: instead of lowering standards, lets fix the underlying problem.

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