Skip to content

Commit d233d82

Browse files
committed
chore: Run ruff format
1 parent 1ea6812 commit d233d82

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
66
rev: v0.12.2
77
hooks:
8-
- id: ruff
8+
- id: ruff-check
9+
- id: ruff-format
910
- repo: local
1011
hooks:
1112
- id: cargo-fmt

manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def json_to_csv(args):
4444
for map_id, mapping in data["Maps"].items():
4545
for ocid, identifiers in mapping.items():
4646
# ocid_buyer* and ocid_procuringentity* are `str`.
47-
for identifier in (identifiers if isinstance(identifiers, list) else [identifiers]):
47+
for identifier in identifiers if isinstance(identifiers, list) else [identifiers]:
4848
identifier_to_ocid[map_id][identifier].append(ocid)
4949

5050
rows = []

python/ocdscardinal/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Measure red flags and procurement indicators using OCDS data."""
2+
23
from .ocdscardinal import coverage
34

45
__all__ = ("coverage",)

0 commit comments

Comments
 (0)