Skip to content
Merged
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
124 changes: 62 additions & 62 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-xml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-docstring-first
- id: name-tests-test
- id: file-contents-sorter
- id: pretty-format-json
args: [ --autofix ]
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: debug-statements
- id: detect-private-key
- id: no-commit-to-branch
args: [ '--branch', 'main' ]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.39.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
- id: check-renovate
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.5.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.3
hooks:
- id: ruff
args: [ --fix ]
continue_on_error: true
- id: ruff-format
continue_on_error: true
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.27"
hooks:
- id: validate-pyproject
additional_dependencies: ["validate-pyproject-schema-store[all]"]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.16.0
hooks:
- id: pretty-format-toml
exclude: poetry.lock
args: [--autofix]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-xml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-docstring-first
- id: name-tests-test
- id: file-contents-sorter
- id: pretty-format-json
args: [ --autofix ]
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: debug-statements
- id: detect-private-key
- id: no-commit-to-branch
args: [ '--branch', 'main' ]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.39.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
- id: check-renovate
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.5.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.4
hooks:
- id: ruff
args: [ --fix ]
continue_on_error: true
- id: ruff-format
continue_on_error: true
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.27"
hooks:
- id: validate-pyproject
additional_dependencies: ["validate-pyproject-schema-store[all]"]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.16.0
hooks:
- id: pretty-format-toml
exclude: poetry.lock
args: [--autofix]
130 changes: 66 additions & 64 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,64 +1,66 @@
[dependency-groups]
dev = [
"ruff==0.17.3",
"pre-commit==4.7.0",
"pytest-flakiness==1.2.0",
]

[project]
dependencies = [
"allure-pytest==2.16.2",
"axe-playwright-python==0.1.8",
"playwright==1.64.1",
"pytest==9.2.0",
"pytest-base-url==2.1.0",
"pytest-playwright==0.10.0",
"pytest-split==0.11.0",
"requests==2.34.2"
]
description = "Playwright Python example project with pytest and Allure report"
name = "playwright-python"
requires-python = "~=3.11"
version = "0.1.0"

[tool.pytest.ini_options]
addopts = [
"--clean-alluredir",
"--alluredir=allure-results",
"--allure-link-pattern",
"issue:https://{}",
"--allure-link-pattern",
"link:https://{}",
"--allure-link-pattern",
"tms:https://{}",
"-ra",
"--color=yes",
"--browser=chromium",
"--headed",
"--video=retain-on-failure",
"--tracing=retain-on-failure"
]
base_url = 'https://www.saucedemo.com/'
log_cli = true
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_level = "INFO"
markers = [
"devRun: marks tests that run before merge to the main branch"
]
pythonpath = ["src"]

[tool.ruff]
exclude = [".venv", "env"]
ignore = [
"D203", # One blank line required before class docstring (conflicts with D211)
"D213", # Multi-line docstring summary should start at the second line
"COM812"
]
line-length = 100
select = ["ALL"]
target-version = "py311"

[tool.ruff.format]
docstring-code-format = true
quote-style = "double"
[dependency-groups]
dev = [
"ruff==0.17.4",
"pre-commit==4.7.0",
"pytest-flakiness==1.2.0",
]

[project]
dependencies = [
"allure-pytest==2.16.2",
"axe-playwright-python==0.1.8",
"playwright==1.64.1",
"pytest==9.2.0",
"pytest-base-url==2.1.0",
"pytest-playwright==0.10.0",
"pytest-split==0.11.0",
"requests==2.34.2"
]
description = "Playwright Python example project with pytest and Allure report"
name = "playwright-python"
requires-python = ">=3.11,<4"
version = "0.1.0"

[tool.pytest.ini_options]
addopts = [
"--clean-alluredir",
"--alluredir=allure-results",
"--allure-link-pattern",
"issue:https://{}",
"--allure-link-pattern",
"link:https://{}",
"--allure-link-pattern",
"tms:https://{}",
"-ra",
"--color=yes",
"--browser=chromium",
"--headed",
"--video=retain-on-failure",
"--tracing=retain-on-failure"
]
base_url = 'https://www.saucedemo.com/'
log_cli = true
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_level = "INFO"
markers = [
"devRun: marks tests that run before merge to the main branch"
]
pythonpath = ["src"]

[tool.ruff]
exclude = [".venv", "env"]
line-length = 100
target-version = "py311"

[tool.ruff.lint]
ignore = [
"D203", # One blank line required before class docstring (conflicts with D211)
"D213", # Multi-line docstring summary should start at the second line
"COM812"
]
select = ["ALL"]

[tool.ruff.format]
docstring-code-format = true
quote-style = "double"
Loading
Loading