Skip to content

Commit 95f3e4f

Browse files
committed
revert to pylint name
1 parent a98e1f0 commit 95f3e4f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/lint.yml renamed to .github/workflows/pylint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: lint
1+
name: pylint
22
on:
33
push:
44
branches:

.github/workflows/pytest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
push:
77
branches:
88
- main
9-
- dev # for now, suppress run on dev branch
9+
# - dev # for now, suppress run on dev branch
1010
pull_request:
1111
branches:
1212
- main
13-
- dev # for now, suppress run on dev branch
13+
# - dev # for now, suppress run on dev branch
1414

1515
jobs:
1616
test:

tests/test_report_lint.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
77
Example use:
88
source .venv/bin/activate
9-
pytest tests/test_report_lint.py -v
10-
pytest tests/test_report_lint.py::test_some_specific_function -v
9+
pytest tests/test_report_pylint.py -v
10+
pytest tests/test_report_pylint.py::test_some_specific_function -v
1111
pytest --cov=src/rattlesnake --cov-report=xml --cov-report=html --cov-report=term-missing
1212
"""
1313

@@ -19,7 +19,7 @@
1919
from typing import Final
2020

2121
import pytest
22-
from rattlesnake.cicd.report_lint import (
22+
from rattlesnake.cicd.report_pylint import (
2323
get_issue_counts,
2424
get_issues_list_html,
2525
get_pylint_content,
@@ -105,7 +105,7 @@ def test_main_success(monkeypatch, capsys):
105105

106106
monkeypatch.setattr("argparse.ArgumentParser.parse_args", lambda self: mock_args)
107107
monkeypatch.setattr(
108-
"rattlesnake.cicd.report_lint.run_pylint_report",
108+
"rattlesnake.cicd.report_pylint.run_pylint_report",
109109
lambda *args, **kwargs: (
110110
10,
111111
{"convention": 1, "warning": 2, "error": 3, "refactor": 4},
@@ -136,7 +136,7 @@ def test_main_file_not_found(monkeypatch, capsys):
136136

137137
monkeypatch.setattr("argparse.ArgumentParser.parse_args", lambda self: mock_args)
138138
monkeypatch.setattr(
139-
"rattlesnake.cicd.report_lint.run_pylint_report",
139+
"rattlesnake.cicd.report_pylint.run_pylint_report",
140140
lambda *args, **kwargs: exec('raise FileNotFoundError("File not found")'),
141141
)
142142

@@ -160,7 +160,7 @@ def test_main_io_error(monkeypatch, capsys):
160160

161161
monkeypatch.setattr("argparse.ArgumentParser.parse_args", lambda self: mock_args)
162162
monkeypatch.setattr(
163-
"rattlesnake.cicd.report_lint.run_pylint_report",
163+
"rattlesnake.cicd.report_pylint.run_pylint_report",
164164
lambda *args, **kwargs: exec('raise IOError("Permission denied")'),
165165
)
166166

@@ -184,7 +184,7 @@ def test_main_unexpected_error(monkeypatch, capsys):
184184

185185
monkeypatch.setattr("argparse.ArgumentParser.parse_args", lambda self: mock_args)
186186
monkeypatch.setattr(
187-
"rattlesnake.cicd.report_lint.run_pylint_report",
187+
"rattlesnake.cicd.report_pylint.run_pylint_report",
188188
lambda *args, **kwargs: exec('raise Exception("Something went wrong")'),
189189
)
190190

0 commit comments

Comments
 (0)