gis-ops / routingpy

🌎 Python library to access all public routing, isochrones and matrix APIs in a consistent manner.
https://routingpy.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
252 stars 26 forks source link

Update pre-commit config file #52

Closed sadikkuzu closed 2 years ago

sadikkuzu commented 2 years ago
nilsnolde commented 2 years ago

thanks!

just realizing I was not very smart when setting up GHA.. @sadikkuzu would you mind updating the workflow yaml as well so your PR runs? I think this is better in the top section:

name: tests

on:
  push:
    branches:
      - master
    paths-ignore:
      - '*.md'
  pull_request:
    branches:
      - master
    paths-ignore:
      - '*.md'
sadikkuzu commented 2 years ago

My pleasure 🙏🏼

Sure, I'll handle in that way.

sadikkuzu commented 2 years ago

I think this line https://github.com/gis-ops/routing-py/blob/e5c976acd4759b5c4b24d910e3516f15afd96d33/.github/workflows/ci-tests.yml#L65 should be changed with

pre-commit run --all-files

Because, pre-commit run acts only on files in staging area. So in this workflow there is "no files to check" message. image

nilsnolde commented 2 years ago

jep of course, you're right! if you wanna do it while you're at it, feel free. thanks for pointing it out!

nilsnolde commented 2 years ago

Oops looks like a lot of files never ran black.. thanks, looks good!