Skip to content

Commit 9eeeb39

Browse files
committed
debt: Ruff Python linting
Replace flake8 with ruff and monorepo configuration.
1 parent 21571c8 commit 9eeeb39

File tree

16 files changed

+36
-31
lines changed

16 files changed

+36
-31
lines changed

.flake8

Lines changed: 0 additions & 10 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.tox
44
.pytest_cache
55
.python-version
6+
.ruff_cache
67
.venv
78

89
*.pyc

allure-behave/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poe.tasks]
2-
linter = "flake8 --extend-ignore=A003 ./src"
2+
linter = "ruff check"
33

44
[tool.poe.tasks.tests]
55
cmd = "pytest ../tests/allure_behave"

allure-behave/src/listener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def enter(self):
230230
self._logger.start_group(group.uuid, group)
231231
self._groups.append(group)
232232

233-
def exit(self): # noqa: A003
233+
def exit(self):
234234
group = self._groups.pop()
235235
if group.befores or group.afters:
236236
self._logger.stop_group(group.uuid)

allure-nose2/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poe.tasks]
2-
linter = "flake8 ./src"
2+
linter = "ruff check"
33

44
[tool.poe.tasks.tests]
55
cmd = "pytest ../tests/allure_nose2"

allure-pytest-bdd/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poe.tasks]
2-
linter = "flake8 ./src"
2+
linter = "ruff check"
33

44
[tool.poe.tasks.tests]
55
cmd = "pytest ../tests/allure_pytest_bdd"

allure-pytest/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poe.tasks]
2-
linter = "flake8 ./src"
2+
linter = "ruff check"
33

44
[tool.poe.tasks.tests]
55
cmd = "pytest ../tests/allure_pytest"

allure-pytest/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import os,sys
1+
import os
2+
import sys
23
from setuptools import setup
34
from pkg_resources import require, DistributionNotFound, VersionConflict
45

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tool.poe.tasks]
2-
linter = "flake8 ./src"
2+
linter = "ruff check"
33
tests = "python -m doctest ./src/*.py"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tool.poe.tasks]
2-
linter = "flake8 --extend-ignore=A001,A002,A003 ./src"
2+
linter = "ruff check"
33
tests = "python -m doctest ./src/allure_commons/*.py"

0 commit comments

Comments
 (0)