Skip to content

Commit

Permalink
Merge branch 'mr/ferrara/bump_black_flake8_mypy-28718' into 'master'
Browse files Browse the repository at this point in the history
Bump Flake8, Black, MyPy

See merge request it/e3-testsuite!46
  • Loading branch information
elsaferrara committed Jan 28, 2025
2 parents b204d29 + ed63f2c commit 423fc1c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -12,18 +12,21 @@ repos:
- pygments
args:
- --config=.flake8
name: flake8-7.1.1
- repo: https://github.com/ambv/black
rev: 24.2.0
rev: 24.10.0
hooks:
- id: black
args:
- --line-length=79
name: black-24.10.0
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.14.1
hooks:
- id: mypy
files: \.py$
exclude: ^(tests|doc)/.+$
additional_dependencies:
- types-PyYAML
- types-setuptools
name: mypy-1.14.1
2 changes: 1 addition & 1 deletion src/e3/testsuite/report/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def display_failures(
)


def main(argv: Optional[List[str]] = None) -> None:
def main(argv: Optional[List[str]] = None) -> int:
args = args_parser.parse_args(argv)
new_index = ReportIndex.read(args.report)
old_index = (
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ commands=
[testenv:checkstyle]
basepython = python
deps =
black==24.2.0
flake8==7.0.0
black==24.10.0
flake8==7.1.1
flake8-docstrings
flake8-rst-docstrings
mypy==1.8.0
mypy==1.14.1
types-PyYAML
types-setuptools
commands =
Expand Down

0 comments on commit 423fc1c

Please sign in to comment.