@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99[project ]
1010# https://peps.python.org/pep-0621/#readme
1111requires-python = " >=3.7"
12- version = " 0.1.8 "
12+ version = " 0.2.0 "
1313name = " pytest-github-actions-annotate-failures"
1414description = " pytest plugin to annotate failed tests with a workflow command for GitHub Actions"
1515readme = " README.md"
@@ -49,3 +49,41 @@ changelog = "https://github.com/pytest-dev/pytest-github-actions-annotate-failur
4949
5050[project .entry-points .pytest11 ]
5151pytest_github_actions_annotate_failures = " pytest_github_actions_annotate_failures.plugin"
52+
53+
54+ [tool .ruff ]
55+ select = [
56+ " E" , " F" , " W" , # flake8
57+ " B" , # flake8-bugbear
58+ " I" , # isort
59+ " ARG" , # flake8-unused-arguments
60+ " C4" , # flake8-comprehensions
61+ " EM" , # flake8-errmsg
62+ " ICN" , # flake8-import-conventions
63+ " ISC" , # flake8-implicit-str-concat
64+ " G" , # flake8-logging-format
65+ " PGH" , # pygrep-hooks
66+ " PIE" , # flake8-pie
67+ " PL" , # pylint
68+ " PT" , # flake8-pytest-style
69+ " RET" , # flake8-return
70+ " RUF" , # Ruff-specific
71+ " SIM" , # flake8-simplify
72+ " UP" , # pyupgrade
73+ " YTT" , # flake8-2020
74+ " EXE" , # flake8-executable
75+ ]
76+ extend-ignore = [
77+ " PLR" , # Design related pylint codes
78+ " E501" , # Line too long
79+ " PT004" , # Use underscore for non-returning fixture (use usefixture instead)
80+ ]
81+ target-version = " py37"
82+ unfixable = [
83+ " T20" , # Removes print statements
84+ " F841" , # Removes unused variables
85+ ]
86+ isort.required-imports = [" from __future__ import annotations" ]
87+
88+ [tool .ruff .per-file-ignores ]
89+ "tests/**" = [" T20" ]
0 commit comments