bump pre-commit deps (#513)
* bump pre-commit deps * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
8685d27c98
commit
e09ebfafac
|
@ -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
|
||||
|
@ -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]
|
||||
|
|
4
Pipfile
4
Pipfile
|
@ -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 = "*"
|
||||
|
||||
|
|
|
@ -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."""
|
||||
|
|
|
@ -823,7 +823,7 @@ class TestHTML:
|
|||
"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):
|
||||
|
|
Loading…
Reference in New Issue