Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump pre-commit deps #513

Merged
merged 2 commits into from Apr 21, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
@@ -1,16 +1,16 @@
repos:
- repo: https://github.com/psf/black
rev: 20.8b1 # also bump this in Pipfile
rev: 22.3.0
hooks:
- id: black
args: [--safe, --quiet]
- repo: https://github.com/asottile/blacken-docs
rev: v1.7.0
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black==20.8b1] # also bump this in Pipfile
additional_dependencies: [black==22.3.0]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -19,21 +19,21 @@ repos:
- id: check-yaml
- id: debug-statements
language_version: python3
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4 # also bump this in Pipfile
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
language_version: python3
additional_dependencies:
- flake8-builtins==1.5.3
- flake8-typing-imports==1.9.0
- flake8-typing-imports==1.12.0
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.3.0
rev: v3.0.1
hooks:
- id: reorder-python-imports
args: ["--application-directories=.:src:testing", --py3-plus]
- repo: https://github.com/asottile/pyupgrade
rev: v2.4.4
rev: v2.32.0
hooks:
- id: pyupgrade
args: [--py3-plus]
Expand Down
4 changes: 2 additions & 2 deletions Pipfile
Expand Up @@ -6,8 +6,8 @@ verify_ssl = true
[dev-packages]
pytest = "*"
tox = "*"
flake8 = "==3.8.4" # also bump this in .pre-commit-config.yaml
black = "==20.8b1" # also bump this in .pre-commit-config.yaml
flake8 = "==4.0.1" # also bump this in .pre-commit-config.yaml
black = "==22.3.0" # also bump this in .pre-commit-config.yaml
pre-commit = "*"
pytest-rerunfailures = "*"

Expand Down
10 changes: 5 additions & 5 deletions src/pytest_html/hooks.py
Expand Up @@ -4,20 +4,20 @@


def pytest_html_report_title(report):
""" Called before adding the title to the report """
"""Called before adding the title to the report"""


def pytest_html_results_summary(prefix, summary, postfix):
""" Called before adding the summary section to the report """
"""Called before adding the summary section to the report"""


def pytest_html_results_table_header(cells):
""" Called after building results table header. """
"""Called after building results table header."""


def pytest_html_results_table_row(report, cells):
""" Called after building results table row. """
"""Called after building results table row."""


def pytest_html_results_table_html(report, data):
""" Called after building results table additional HTML. """
"""Called after building results table additional HTML."""
2 changes: 1 addition & 1 deletion testing/test_pytest_html.py
Expand Up @@ -823,7 +823,7 @@ def pytest_configure(config):
"content,expected_content", _test_environment_list_value_data_set
)
def test_environment_list_value(self, testdir, content, expected_content):
expected_html_re = fr"<td>content</td>\n\s+<td>{expected_content}</td>"
expected_html_re = rf"<td>content</td>\n\s+<td>{expected_content}</td>"
testdir.makeconftest(
f"""
def pytest_configure(config):
Expand Down