Skip to content
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

Noxfile defaults #1723

Merged
merged 3 commits into from
Oct 30, 2019
Merged

Noxfile defaults #1723

merged 3 commits into from
Oct 30, 2019

Conversation

pquentin
Copy link
Member

It's important here to read (and merge?) commit by commit, because the first commit creates a lot of noise. This first commit is not strictly needed, but git reminds me in every git diff that noxfile.py is the only urllib3 file using DOS lines, which is quite annoying. 😄

It turns out that without turning this one it's difficult to list
exactly the tests that failed.
The default pytest tracebacks are really verbose: for each function in
the stack they include the whole function until the exception, and the
representation of its parameters.

On the other hand, native tracebacks are way more concise, showing only
two lines for each function and exception chains.

The benefits of switching to native tracebacks:

 * The useful information fits in one screen
 * Python trains us to read those tracebacks from day one
 * We avoid the verbosity of showing the source code: we can already
   see it in GitHub and our editors
 * While we lose the information about parameters, I've never found this
   information to be useful

I've been using this configuration for a few months now and never looked
back!
@codecov-io
Copy link

codecov-io commented Oct 30, 2019

Codecov Report

Merging #1723 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1723   +/-   ##
=======================================
  Coverage   99.65%   99.65%           
=======================================
  Files          22       22           
  Lines        2006     2006           
=======================================
  Hits         1999     1999           
  Misses          7        7

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 11d68ef...b058b30. Read the comment docs.

Copy link
Member

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

Thanks for fixing the line ending issue! I don't have an opinion on the tracebacks, so we'll give these a whirl. :)

@sethmlarson sethmlarson merged commit cf0eda9 into urllib3:master Oct 30, 2019
@pquentin pquentin deleted the noxfile-defaults branch November 30, 2019 18:16
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.

3 participants