Skip to content

Commit e79dd63

Browse files
committed
Add ruff check to lint, address errors.
1 parent 67a6c0c commit e79dd63

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ jobs:
2020
with:
2121
python-version: "3.x"
2222
- uses: tox-dev/action-pre-commit-uv@v1
23+
- uses: astral-sh/ruff-action@v3
24+
with:
25+
args: check
26+
src: "."

src/blurb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from ._version import __version__
1+
from ._version import __version__ as __version__

tests/test_add_command.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import io
44
import os
5-
import tempfile
65
from unittest import mock
76
import pytest
87
from pyfakefs.fake_filesystem import FakeFilesystem
@@ -103,7 +102,7 @@ def test_add_with_all_automation_params(self, mock_stdin, mock_flush_git, mock_c
103102
# Call add with automation parameters
104103
with mock.patch('blurb.blurb.sortable_datetime', return_value='2024-01-01-12-00-00'):
105104
with mock.patch('blurb.blurb.nonceify', return_value='abc123'):
106-
result = blurb.add(
105+
blurb.add(
107106
gh_issue=123456,
108107
section="Library",
109108
rst_on_stdin=True

tests/test_cli_integration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
"""Integration tests for the blurb CLI tool."""
22

3-
import os
43
import subprocess
54
import sys
6-
from pathlib import Path
75
import pytest
86
import shutil
97

0 commit comments

Comments
 (0)