Added pre-commit checks.

This commit is contained in:
Felix Delattre 2026-06-11 16:34:49 +02:00
parent d29754e4a5
commit 3ac5d348d0
3 changed files with 9 additions and 2 deletions

8
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,8 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

View file

@ -186,7 +186,7 @@ def _parse_phenocam_csv(
return gcc_series, image_list
with csv_path.open() as f:
lines = [l for l in f if not l.startswith("#")]
lines = [line for line in f if not line.startswith("#")]
reader = csv.DictReader(lines)
for row in reader:

View file

@ -31,7 +31,6 @@ import argparse
import importlib.util
import shutil
import sys
from collections import Counter
from pathlib import Path
import rasterio