Skip to content
Snippets Groups Projects
Commit 0fe801f4 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[qa] Fixes

parent 5d559b26
No related branches found
No related tags found
No related merge requests found
Pipeline #81833 failed
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
# See https://pre-commit.com/hooks.html for more hooks # See https://pre-commit.com/hooks.html for more hooks
repos: repos:
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.1.0 rev: 23.11.0
hooks: hooks:
- id: black - id: black
- repo: https://github.com/pycqa/docformatter - repo: https://github.com/pycqa/docformatter
rev: v1.5.1 rev: v1.7.5
hooks: hooks:
- id: docformatter - id: docformatter
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort
...@@ -18,11 +18,11 @@ repos: ...@@ -18,11 +18,11 @@ repos:
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/pycqa/flake8 - repo: https://github.com/pycqa/flake8
rev: 6.0.0 rev: 6.1.0
hooks: hooks:
- id: flake8 - id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.0 rev: v1.7.1
hooks: hooks:
- id: mypy - id: mypy
args: [ args: [
...@@ -33,12 +33,12 @@ repos: ...@@ -33,12 +33,12 @@ repos:
] ]
exclude: '^.*/data/second_config\.py$' exclude: '^.*/data/second_config\.py$'
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.3.1 rev: v3.15.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py38-plus] args: [--py38-plus]
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v4.5.0
hooks: hooks:
- id: check-ast - id: check-ast
- id: check-added-large-files - id: check-added-large-files
...@@ -51,6 +51,6 @@ repos: ...@@ -51,6 +51,6 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: debug-statements - id: debug-statements
- repo: https://github.com/fsfe/reuse-tool - repo: https://github.com/fsfe/reuse-tool
rev: v1.1.2 rev: v2.1.0
hooks: hooks:
- id: reuse - id: reuse
# Copyright © 2022 Idiap Research Institute <contact@idiap.ch> # Copyright © 2022 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
"""Utilities to interact with GitLab.""" """Utilities to interact with GitLab."""
from __future__ import annotations from __future__ import annotations
......
# Copyright © 2022 Idiap Research Institute <contact@idiap.ch> # Copyright © 2022 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
"""Utilities for retrieving, parsing and auto-generating changelogs.""" """Utilities for retrieving, parsing and auto-generating changelogs."""
from __future__ import annotations from __future__ import annotations
......
# Copyright © 2022 Idiap Research Institute <contact@idiap.ch> # Copyright © 2022 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
"""Utilities to needed to release packages.""" """Utilities to needed to release packages."""
from __future__ import annotations from __future__ import annotations
......
# Copyright © 2022 Idiap Research Institute <contact@idiap.ch> # Copyright © 2022 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
""":py:class:`logging.Logger` setup and stream separation."""
""":py:class:`logging.Logger` setup and stream separation"""
import logging import logging
import sys import sys
...@@ -12,8 +11,7 @@ import typing ...@@ -12,8 +11,7 @@ import typing
# debug and info messages are written to sys.stdout # debug and info messages are written to sys.stdout
class _InfoFilter(logging.Filter): class _InfoFilter(logging.Filter):
"""Filter-class to delete any log-record with level above """Filter-class to delete any log-record with level above
:any:`logging.INFO` **before** reaching the handler. :any:`logging.INFO` **before** reaching the handler."""
"""
def __init__(self): def __init__(self):
super().__init__() super().__init__()
......
...@@ -25,9 +25,9 @@ def gitlab() -> None: ...@@ -25,9 +25,9 @@ def gitlab() -> None:
"""Commands that interact directly with GitLab. """Commands that interact directly with GitLab.
Commands defined here are supposed to interact with gitlab, and Commands defined here are supposed to interact with gitlab, and
add/modify/remove resources on it directly. To avoid repetitive asking, add/modify/remove resources on it directly. To avoid repetitive
create a configuration file as indicated in the asking, create a configuration file as indicated in the :ref:`idiap-
:ref:`idiap-devtools.install.setup.gitlab` section of the user guide. devtools.install.setup.gitlab` section of the user guide.
""" """
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment