mirror of
https://gitlab.com/itsulu-odoo/runboat.git
synced 2026-05-30 23:41:27 +00:00
Merge pull request #70 from sbidoul/pre-commit-autoupdate
Pre commit autoupdate
This commit is contained in:
commit
2f26ed9095
6 changed files with 15 additions and 20 deletions
|
|
@ -2,11 +2,11 @@ default_language_version:
|
|||
python: python3
|
||||
repos:
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.6.0
|
||||
rev: 22.8.0
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/myint/autoflake
|
||||
rev: v1.4
|
||||
rev: v1.5.3
|
||||
hooks:
|
||||
- id: autoflake
|
||||
args:
|
||||
|
|
@ -22,21 +22,21 @@ repos:
|
|||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: "4.0.1"
|
||||
rev: "5.0.4"
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies: ["flake8-bugbear==21.4.3"]
|
||||
additional_dependencies: ["flake8-bugbear==22.9.11"]
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
rev: 5.10.1
|
||||
hooks:
|
||||
- id: isort
|
||||
- repo: https://github.com/myint/docformatter
|
||||
rev: v1.4
|
||||
rev: v1.5.0
|
||||
hooks:
|
||||
- id: docformatter
|
||||
args: ["--in-place", "--wrap-summaries=88"]
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.34.0
|
||||
rev: v2.38.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: ["--py39-plus"]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import asyncio
|
||||
import datetime
|
||||
from typing import AsyncGenerator
|
||||
from collections.abc import AsyncGenerator
|
||||
|
||||
from ansi2html import Ansi2HTMLConverter
|
||||
from fastapi import APIRouter, Depends, HTTPException, Request, status
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import asyncio
|
||||
import logging
|
||||
from typing import Any, Awaitable, Callable
|
||||
from collections.abc import Awaitable
|
||||
from typing import Any, Callable
|
||||
|
||||
from . import k8s
|
||||
from .db import BuildsDb
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
import logging
|
||||
import sqlite3
|
||||
from collections.abc import Iterator
|
||||
from enum import Enum
|
||||
from typing import Any, Iterator, Protocol, cast
|
||||
from typing import Any, Protocol, cast
|
||||
from weakref import WeakSet
|
||||
|
||||
from .github import CommitInfo
|
||||
|
|
|
|||
|
|
@ -4,11 +4,12 @@ import os
|
|||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
from collections.abc import Generator
|
||||
from contextlib import contextmanager
|
||||
from enum import Enum
|
||||
from importlib import resources
|
||||
from pathlib import Path
|
||||
from typing import Any, Callable, Generator, TypedDict, cast
|
||||
from typing import Any, Callable, TypedDict, cast
|
||||
|
||||
import urllib3
|
||||
from jinja2 import Template
|
||||
|
|
|
|||
|
|
@ -1,18 +1,10 @@
|
|||
import asyncio
|
||||
import functools
|
||||
import re
|
||||
from collections.abc import AsyncGenerator, Awaitable, Generator, Iterator
|
||||
from concurrent.futures.thread import ThreadPoolExecutor
|
||||
from functools import wraps
|
||||
from typing import (
|
||||
Any,
|
||||
AsyncGenerator,
|
||||
Awaitable,
|
||||
Callable,
|
||||
Generator,
|
||||
Iterator,
|
||||
ParamSpec,
|
||||
TypeVar,
|
||||
)
|
||||
from typing import Any, Callable, ParamSpec, TypeVar
|
||||
|
||||
_pool = ThreadPoolExecutor(max_workers=20, thread_name_prefix="sync_to_async")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue