Skip to content

Commit

Permalink
Update pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Feb 24, 2022
1 parent 68078ba commit 512fd0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
2 changes: 1 addition & 1 deletion pytest_bdd/cucumber_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _get_result(self, step, report, error_message=False):
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):
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 512fd0f

Please sign in to comment.