dyollb / segmantic

Semantic segmentation and image-to-image translation based on AI
https://dyollb.github.io/segmantic/
MIT License
1 stars 3 forks source link

⬆️ Upgrade hooks #37

Closed dyollb closed 2 years ago

dyollb commented 2 years ago

What do these changes do?

pcrespov commented 2 years ago

Small challenge: I would also be nice to manually trigger from the console any of the pre-commits that you have configured.

Imaging you have a folder that you would like to "clean" and them you trigger all the battery targeting all files in a folder.

How would you do that? what would be the most minimalist approach (i.e. using current configs and tools) to achieve that :-)

pcrespov commented 2 years ago

A possible solution from https://pre-commit.com/#usage

If you want to manually run all pre-commit hooks on a repository, run pre-commit run --all-files. To run individual hooks use pre-commit run .

so touch mydir; pre-commit run pyupgrade ?? or perhaps add the command as a [project.scripts] ? or in a Makefile recipe: make pycln or make pyupgrade target=mydir etc ... ?

pcrespov commented 2 years ago

@dyollb i also recommend you to check this https://github.com/apps/sonarcloud

codecov[bot] commented 2 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@ceeec99). Click here to learn what that means. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #37   +/-   ##
=======================================
  Coverage        ?   17.32%           
=======================================
  Files           ?       44           
  Lines           ?     2211           
  Branches        ?      365           
=======================================
  Hits            ?      383           
  Misses          ?     1805           
  Partials        ?       23           
Flag Coverage Δ
unittests 17.32% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


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 ceeec99...e5466f5. Read the comment docs.