o2r-project / geoextent

Python library for extrating geospatial extent of files and directories with multiple data formats
https://o2r.info/geoextent/
MIT License
1 stars 4 forks source link

Use black code formatter and enable it in a pre-commit hook #11

Open nuest opened 5 years ago

nuest commented 5 years ago
nuest commented 4 years ago

GitHub Actions

  1. flake8 snippet removed from template
    - name: Lint with flake8
      run: |
        pip install flake8
        # stop the build if there are Python syntax errors or undefined names
        flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
        # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
        flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
  2. black action: https://github.com/marketplace/actions/black-code-formatter