Skip to content

Commit afd8977

Browse files
committed
Start migrating to cruft / conda package
1 parent 29adc2c commit afd8977

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

.pre-commit-config-cruft.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
repos:
2+
- repo: https://github.com/cruft/cruft
3+
rev: 2.15.0
4+
hooks:
5+
- id: cruft
6+
entry: cruft update -y
7+
additional_dependencies: [toml]

.pre-commit-config.yaml

+15-17
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,39 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.5.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- id: check-json
88
- id: check-yaml
99
- id: check-toml
1010
- id: check-added-large-files
11+
- id: check-merge-conflict
1112
- id: debug-statements
1213
- id: mixed-line-ending
13-
- repo: https://github.com/PyCQA/isort
14-
rev: 5.12.0
15-
hooks:
16-
- id: isort
17-
- repo: https://github.com/psf/black
18-
rev: 23.9.1
19-
hooks:
20-
- id: black
2114
- repo: https://github.com/keewis/blackdoc
22-
rev: v0.3.8
15+
rev: v0.3.9
2316
hooks:
2417
- id: blackdoc
25-
exclude: generate_reductions.py
26-
additional_dependencies: [black==22.3.0]
27-
- repo: https://github.com/PyCQA/flake8
28-
rev: 6.1.0
18+
additional_dependencies: [black==23.11.0]
19+
- repo: https://github.com/astral-sh/ruff-pre-commit
20+
rev: v0.1.13
2921
hooks:
30-
- id: flake8
22+
- id: ruff
23+
args: [--fix, --show-fixes]
24+
- id: ruff-format
3125
- repo: https://github.com/executablebooks/mdformat
3226
rev: 0.7.17
3327
hooks:
3428
- id: mdformat
3529
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
36-
rev: v2.10.0
30+
rev: v2.12.0
3731
hooks:
3832
- id: pretty-format-yaml
39-
args: [--autofix]
33+
args: [--autofix, --preserve-quotes]
4034
- id: pretty-format-toml
4135
args: [--autofix]
36+
- repo: https://github.com/gitleaks/gitleaks
37+
rev: v8.18.1
38+
hooks:
39+
- id: gitleaks

xarray_sentinel/sentinel1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def get_footprint_linestring(
316316

317317

318318
def make_geospatial_attributes(
319-
footprint: Sequence[Tuple[float, float]]
319+
footprint: Sequence[Tuple[float, float]],
320320
) -> Dict[str, Any]:
321321
wkt = "POLYGON((" + ",".join(f"{y} {x}" for y, x in footprint) + "))"
322322
geospatial_attrs = {

0 commit comments

Comments
 (0)