junction icon indicating copy to clipboard operation
junction copied to clipboard

Added command to export reviewer's votes

Open the-xperimentalist opened this issue 5 years ago • 20 comments

Fix for: https://github.com/pythonindia/junction/issues/553

the-xperimentalist avatar Mar 22 '20 08:03 the-xperimentalist

Coverage Status

Coverage decreased (-0.05%) to 67.308% when pulling b3470b5c16001c88fc9657e847c12b11e8a541a2 on prasoonmayank:master into b8309fbfcc7c33a5edb772ee3a485ceb27da6f39 on pythonindia:master.

coveralls avatar Mar 22 '20 08:03 coveralls

@prasoonmayank Left some comments.

Also, please lint your code before committing. You can do so by running nox -s lint

palnabarun avatar Mar 22 '20 08:03 palnabarun

Will be completing proper testing with corner cases by today

the-xperimentalist avatar Mar 24 '20 20:03 the-xperimentalist

@prasoonmayank, It looks like you have committed your env file?

sks444 avatar Mar 25 '20 05:03 sks444

@prasoonmayank Can you rebase your changes and run the linter again. There is a recent PR that has been merged with a change in the linting approach.

ananyo2012 avatar Apr 04 '20 15:04 ananyo2012

Hey @ananyo2012 is there a way to run the lint code without nox? Since, earlier, nox was calling a flake8 command, and was able to lint it. Since, for some reason, nox is not working in Mac

the-xperimentalist avatar Apr 04 '20 18:04 the-xperimentalist

@prasoonmayank Why is nox not working for you? Could you share the error message?

pradyunsg avatar Apr 04 '20 20:04 pradyunsg

Also, yes, you can run the linters without nox, by running pre-commit directly (pip install pre-commit and then pre-commit run --all-files).

pradyunsg avatar Apr 04 '20 21:04 pradyunsg

I will try to run the latest linting changes locally. We also got a report earlier regarding issues running test locally.

On Sun, Apr 5, 2020 at 2:39 AM Pradyun Gedam [email protected] wrote:

Also, yes, you can run the linters without nox, by running pre-commit directly (pip install pre-commit and then pre-commit run --all-files).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

ananyo2012 avatar Apr 05 '20 04:04 ananyo2012

@prasoonmayank Why is nox not working for you? Could you share the error message?

There were essentially two problems in my case:

  1. pipx wasn't installing nox.
  2. For some reason, nox command in Mac was setup in a different folder, since there are multiple python versions installed probably?
  3. Regarding linting, with the latest changes, we are able to lint with the pre-commit command only with the python version being 3.6

the-xperimentalist avatar Apr 05 '20 07:04 the-xperimentalist

@prasoonmayank There is an issue reported for Mac systems in #660 . What python versions do you have in your system ? Instead of using nox can you try running tests using pytest --cov -v --tb=native.

pre-commit should be able to lint in all versions. Are you seeing any failures related to isort ? That's a known issue introduced recently. Except that other linting tests should work.

ananyo2012 avatar Apr 05 '20 08:04 ananyo2012

#660

I installed python3.6 for the pre-commit linter to work. Regarding the test coverage. All the test cases have been passing, but the build is failing for some reason. Can you suggest some probable reason for the same?

the-xperimentalist avatar Apr 05 '20 19:04 the-xperimentalist

@prasoonmayank If you click details on the failing check, you can see the CI runs, and then clicking on the specific job reveals the output of that job.

In this case, the linters are failing for you.

pradyunsg avatar Apr 05 '20 20:04 pradyunsg

The isort fails are a valid one I mentioned in #663 cc: @pradyunsg

ananyo2012 avatar Apr 06 '20 03:04 ananyo2012

Hey @prasoonmayank, could you file an issue describing why you aren't able to install nox (including the error messages if you see any)? If it's not working for a contributor, that's a bug in either our developer tools, or developer documentation. :)

pradyunsg avatar Apr 06 '20 17:04 pradyunsg

Other than that, please feel free to go ahead and merge master into this PR / rebase this PR on master.

pradyunsg avatar Apr 06 '20 17:04 pradyunsg

Before merging please make sure the commits are squashed.

sayanchowdhury avatar Apr 17 '20 06:04 sayanchowdhury

Hey @palnabarun Please review the pr. As it is in requested changes state right now

the-xperimentalist avatar Apr 19 '20 13:04 the-xperimentalist

@mpras97 are you still working on this?

aniruddha2000 avatar Aug 03 '20 15:08 aniruddha2000

@mpras97 are you still working on this?

Yes. Willl resolve these comments

the-xperimentalist avatar Aug 06 '20 08:08 the-xperimentalist