unasync icon indicating copy to clipboard operation
unasync copied to clipboard

Many 'o' fixes

Open ntninja opened this issue 4 years ago • 4 comments

Many fixes for:

  • Running tests on Debian/Linux
  • Coverage reporting wrt Python 2 & 3 only code
  • Source code indented with tabs (like all of mine)
  • Type comments (old-style typings for compatiblity with Python 2.7 and, in some cases, 3.5)
  • Forward-references (string values in typings)
  • pathlib.Path/os.fspath filesystem paths

ntninja avatar Dec 18 '20 15:12 ntninja

Codecov Report

Merging #71 (3699165) into master (9b15d0e) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            master       #71    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            4         4            
  Lines          254       424   +170     
  Branches        62       120    +58     
==========================================
+ Hits           254       424   +170     
Impacted Files Coverage Δ
src/unasync/__init__.py 100.00% <100.00%> (ø)
unasync/__init__.py 100.00% <0.00%> (ø)

codecov[bot] avatar Dec 18 '20 19:12 codecov[bot]

Can you make the coverage reports public please? It cannot view them and I don't see any coverage misses when running locally.

ntninja avatar Dec 18 '20 19:12 ntninja

A high level comment is it might be easier to review all of this if it were split into multiple smaller PRs. Would you be able to do that?

I'd strongly prefer not doing that, as the commits build on each other and separating them into different PRs would be a big mess. That said, each commit is self-contained and you can review them one-by-one on Github.

It looks like there was a problem shipping the coverage data? Our reports should be public as far as I'm aware? https://codecov.io/gh/python-trio/unasync/pull/71

Hmm… That worked, then stopped working, then started working again. :confused:

This might be causing a problem for Python 2 coverage, might need a [paths] source = src/unasync entry too.

I tried this in both coverage files and it did nothing. However, one can see the actual summary coverage data on CodeCov by clicking on the Files and then on the src/unasync directory which appears to be an exact mirror of the unasync directory in terms of coverage data, but is actually able to load the data.

ntninja avatar Dec 22 '20 17:12 ntninja

I still need to review two commits: https://github.com/python-trio/unasync/pull/71/commits/600807e1f43fb4401f5f3af7984e1eee0f2f908f and https://github.com/python-trio/unasync/pull/71/commits/4527a95fc65d388427cc41651c930368eb5ed4f4. The rest looks good to me!

(Sorry, it took me time to see this as I was on holidays and GitHub notifications only showed me recent items.)

pquentin avatar Jan 15 '21 13:01 pquentin