diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e2590a9..c2ae605 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/psf/black # If you update the version here, also update it in tox.ini (py*-pytestlatest-linters) - rev: 21.12b0 + rev: 22.1.0 hooks: - id: black - repo: https://github.com/pycqa/isort @@ -19,7 +19,7 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/asottile/pyupgrade - rev: v2.29.1 + rev: v2.31.0 hooks: - id: pyupgrade - args: [--py36-plus] + args: [--py37-plus] diff --git a/pytest_bdd/cucumber_json.py b/pytest_bdd/cucumber_json.py index 07b5e6e..3102a50 100644 --- a/pytest_bdd/cucumber_json.py +++ b/pytest_bdd/cucumber_json.py @@ -61,7 +61,7 @@ class LogBDDCucumberJSON: result = {"status": "failed", "error_message": str(report.longrepr) if error_message else ""} elif report.skipped: result = {"status": "skipped"} - result["duration"] = int(math.floor((10 ** 9) * step["duration"])) # nanosec + result["duration"] = int(math.floor((10**9) * step["duration"])) # nanosec return result def _serialize_tags(self, item): diff --git a/tox.ini b/tox.ini index 8249b8c..25fe0e2 100644 --- a/tox.ini +++ b/tox.ini @@ -30,9 +30,8 @@ deps = -r{toxinidir}/requirements-testing.txt commands = {env:_PYTEST_CMD:pytest} {env:_PYTEST_MORE_ARGS:} {posargs:-vvl} -; Black doesn't support >py38 now [testenv:py310-pytestlatest-linters] -deps = black==21.12b0 +deps = black==22.1.0 commands = black --check --verbose setup.py docs pytest_bdd tests [gh-actions]