Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .flake8

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.tox
.pytest_cache
.python-version
.ruff_cache
.venv

*.pyc
Expand Down
17 changes: 0 additions & 17 deletions Jenkinsfile

This file was deleted.

2 changes: 1 addition & 1 deletion allure-behave/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poe.tasks]
linter = "flake8 --extend-ignore=A003 ./src"
linter = "ruff check"

[tool.poe.tasks.tests]
cmd = "pytest ../tests/allure_behave"
Expand Down
2 changes: 1 addition & 1 deletion allure-behave/src/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def enter(self):
self._logger.start_group(group.uuid, group)
self._groups.append(group)

def exit(self): # noqa: A003
def exit(self):
group = self._groups.pop()
if group.befores or group.afters:
self._logger.stop_group(group.uuid)
Expand Down
2 changes: 1 addition & 1 deletion allure-nose2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poe.tasks]
linter = "flake8 ./src"
linter = "ruff check"

[tool.poe.tasks.tests]
cmd = "pytest ../tests/allure_nose2"
Expand Down
2 changes: 1 addition & 1 deletion allure-pytest-bdd/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poe.tasks]
linter = "flake8 ./src"
linter = "ruff check"

[tool.poe.tasks.tests]
cmd = "pytest ../tests/allure_pytest_bdd"
Expand Down
2 changes: 1 addition & 1 deletion allure-pytest/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poe.tasks]
linter = "flake8 ./src"
linter = "ruff check"

[tool.poe.tasks.tests]
cmd = "pytest ../tests/allure_pytest"
Expand Down
3 changes: 2 additions & 1 deletion allure-pytest/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os,sys
import os
import sys
from setuptools import setup
from pkg_resources import require, DistributionNotFound, VersionConflict

Expand Down
2 changes: 1 addition & 1 deletion allure-python-commons-test/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[tool.poe.tasks]
linter = "flake8 ./src"
linter = "ruff check"
tests = "python -m doctest ./src/*.py"
2 changes: 1 addition & 1 deletion allure-python-commons/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[tool.poe.tasks]
linter = "flake8 --extend-ignore=A001,A002,A003 ./src"
linter = "ruff check"
tests = "python -m doctest ./src/allure_commons/*.py"
8 changes: 4 additions & 4 deletions allure-python-commons/src/allure_commons/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from allure_commons._hooks import hookimpl # noqa: F401
from allure_commons._core import plugin_manager # noqa: F401
from allure_commons._allure import fixture # noqa: F401
from allure_commons._allure import test # noqa: F401
from allure_commons._hooks import hookimpl
from allure_commons._core import plugin_manager
from allure_commons._allure import fixture
from allure_commons._allure import test


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion allure-python-commons/src/allure_commons/_allure.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def tag(*tags):
Dynamic.label(LabelType.TAG, *tags)

@staticmethod
def id(id): # noqa: A003,A002
def id(id): # noqa: A002
Dynamic.label(LabelType.ID, id)

@staticmethod
Expand Down
7 changes: 3 additions & 4 deletions allure-python-commons/src/allure_commons/model2.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class TestResult(ExecutableItem):

@attrs
class TestStepResult(ExecutableItem):
id = attrib(default=None) # noqa: A003
id = attrib(default=None)


@attrs
Expand Down Expand Up @@ -83,7 +83,7 @@ class Label:

@attrs
class Link:
type = attrib(default=None) # noqa: A003
type = attrib(default=None)
url = attrib(default=None)
name = attrib(default=None)

Expand All @@ -95,12 +95,11 @@ class StatusDetails:
message = attrib(default=None)
trace = attrib(default=None)


@attrs
class Attachment:
name = attrib(default=None)
source = attrib(default=None)
type = attrib(default=None) # noqa: A003
type = attrib(default=None)


class Status:
Expand Down
2 changes: 1 addition & 1 deletion allure-robotframework/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poe.tasks]
linter = "flake8 ./src"
linter = "ruff check"

[tool.poe.tasks.tests]
shell = "python -m doctest ./src/listener/utils.py && pytest ../tests/allure_robotframework"
Expand Down
17 changes: 16 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poe.tasks]
linter = "flake8 ./allure-*/src ./tests"
linter = "ruff check"
allure-generate = "allure generate --clean --output ./.allure-report ./.allure-results"
allure-open = "allure open ./.allure-report"

Expand All @@ -19,3 +19,18 @@ addopts = [
"-p", "no:allure_pytest",
"-p", "no:allure_pytest_bdd"
]

[tool.ruff]
extend-exclude = [
"tests/allure_behave/acceptance/**/test-data/**",
"tests/allure_behave/acceptance/behave_support/background/background_steps.py",
]
line-length = 120

[tool.ruff.lint]
select = [
"A", # flake8-builtins
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
]
3 changes: 1 addition & 2 deletions requirements/linting.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
-r ./core.txt
flake8
flake8-builtins
ruff