Skip to content

Commit

Permalink
Added automated linting (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgomezdans committed Aug 2, 2023
1 parent 5e3b591 commit d2aab80
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/run_linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Python Linting and Formatting

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff black
- name: Lint with Ruff
run: ruff .

- name: Format with Black
run: black -l 80 .
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@ gdal
eumdac
requests
tqdm
qgis.core
click
pandas
xarray
retrying
numpy

0 comments on commit d2aab80

Please sign in to comment.