Skip to content

Commit 0340c7a

Browse files
committed
chore: Add lint and format targets to Makefile
Added new targets to the Makefile to facilitate linting and formatting. The `lint` target runs `ruff check` to identify code style issues, and `lint-fix` applies automatic fixes. The `format` target uses `uv format` to ensure consistent code style across the project. These additions improve the development workflow by providing convenient commands for maintaining code quality. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent 9cf9593 commit 0340c7a

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,12 @@ all:
33

44
html:
55
@uv run cfp-radar generate
6+
7+
lint:
8+
@uvx ruff check
9+
10+
lint-fix:
11+
@uvx ruff check --fix
12+
13+
format:
14+
@uv format

src/collector/sources/papercall.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
import httpx
88
from bs4 import BeautifulSoup
99

10-
from ...config import COUNTRY_ALIASES, GLOBAL_CONFERENCES, TARGET_COUNTRIES, TOPICS, normalize_country
10+
from ...config import (
11+
COUNTRY_ALIASES,
12+
GLOBAL_CONFERENCES,
13+
TARGET_COUNTRIES,
14+
TOPICS,
15+
normalize_country,
16+
)
1117
from ...logging_config import get_logger
1218
from ..models import Event
1319

src/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def normalize_country(country: str) -> str:
6363
"""Normalize country name variants to canonical form."""
6464
return COUNTRY_ALIASES.get(country.lower().strip(), country)
6565

66+
6667
DEFAULT_CONFIG_FILE = os.path.join(os.path.dirname(os.path.dirname(__file__)), "config.yaml")
6768
_config_file: str | None = None
6869

0 commit comments

Comments
 (0)