diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1a26840..748fe0e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,6 +15,7 @@ jobs: - uses: astral-sh/setup-uv@v5 - run: uv python install 3.13 - run: uv run ruff format --check + - run: uv run ruff check isort: runs-on: ubuntu-latest steps: diff --git a/HISTORY.rst b/HISTORY.rst index b1a7de0..c0924c2 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,3 +1,9 @@ +2.5 (2025-01-09) +++++++++++++++++ + +* Remove accidentally added debug print. +* Add ruff linting and print checking. + 2.4 (2025-01-09) ++++++++++++++++ diff --git a/django_cmd.py b/django_cmd.py index db508f2..f0f2b9b 100644 --- a/django_cmd.py +++ b/django_cmd.py @@ -27,7 +27,6 @@ def configure(): # Load from pyproject.toml first if pyproject := locate(): - print(pyproject.open().readlines()) with pyproject.open("rb") as f: config = tomllib.load(f) settings_module = ( diff --git a/pyproject.toml b/pyproject.toml index ee31794..ee92327 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,3 +59,6 @@ code = """ import django_cmd django_cmd.patch_django() """ + +[tool.ruff.lint] +select = ["T201"]