Skip to content

Commit 323c3f6

Browse files
committed
run pylint AND ruff
1 parent 78bbc8b commit 323c3f6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/tests.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ jobs:
8888
- name: Setup python
8989
uses: ./.github/setup_python
9090

91-
- name: Run linter
92-
run: ruff evap
91+
- name: Run linters
92+
run: |
93+
pylint evap -j0
94+
ruff evap
9395
9496
9597
formatter:

evap/evaluation/management/commands/lint.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ class Command(BaseCommand):
99
requires_migrations_checks = False
1010

1111
def handle(self, *args, **options):
12-
subprocess.run(["ruff", "evap/"], check=False) # nosec
12+
subprocess.run(["pylint", "evap"], check=False) # nosec
13+
subprocess.run(["ruff", "evap"], check=False) # nosec

evap/evaluation/tests/test_commands.py

+1
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ class TestLintCommand(TestCase):
371371
def test_pylint_called(mock_subprocess_run):
372372
management.call_command("lint")
373373
mock_subprocess_run.assert_called_once_with(["pylint", "evap"], check=False)
374+
mock_subprocess_run.assert_called_once_with(["ruff", "evap"], check=False)
374375

375376

376377
class TestFormatCommand(TestCase):

0 commit comments

Comments
 (0)