Skip to content

Commit e1800eb

Browse files
committed
ci
1 parent a353b1a commit e1800eb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: [3.9, '3.10', '3.11']
11+
python-version: ['3.11', '3.12', '3.13']
1212

1313
steps:
1414
- uses: actions/checkout@v2

src/pkgmt/assets/template/.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
17+
python-version: ['3.11', '3.12', '3.13']
1818

1919
steps:
2020
- uses: actions/checkout@v4

src/pkgmt/new.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def package(name, use_setup_py=False):
6767
if line.strip() == "# flake8: noqa":
6868
continue
6969
# Remove the noqa substring from other lines
70-
new_line = line.replace("# flake8: noqa", "").rstrip()
71-
if new_line:
72-
new_lines.append(new_line)
70+
if "# flake8: noqa" in line:
71+
line = line.replace("# flake8: noqa", "").rstrip()
72+
new_lines.append(line)
7373

7474
# Write back the cleaned content
7575
py_file.write_text("\n".join(new_lines) + "\n")

0 commit comments

Comments
 (0)