Skip to content

Commit 1cd5a33

Browse files
[pre-commit.ci] pre-commit autoupdate (#154)
<!--pre-commit.ci start--> updates: - [github.com/psf/black: 23.9.1 → 23.10.0](psf/black@23.9.1...23.10.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.292 → v0.1.1](astral-sh/ruff-pre-commit@v0.0.292...v0.1.1) - [github.com/pre-commit/mirrors-mypy: v1.6.0 → v1.6.1](pre-commit/mirrors-mypy@v1.6.0...v1.6.1) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c43c784 commit 1cd5a33

File tree

16 files changed

+17
-4
lines changed

16 files changed

+17
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
)
2525
2626
- repo: https://github.com/psf/black
27-
rev: 23.9.1
27+
rev: 23.10.0
2828
hooks:
2929
- id: black
3030
files: >-
@@ -41,12 +41,12 @@ repos:
4141
- id: pyproject-fmt
4242

4343
- repo: https://github.com/astral-sh/ruff-pre-commit
44-
rev: v0.0.292
44+
rev: v0.1.1
4545
hooks:
4646
- id: ruff
4747

4848
- repo: https://github.com/pre-commit/mirrors-mypy
49-
rev: v1.6.0
49+
rev: v1.6.1
5050
hooks:
5151
- id: mypy
5252
files: nc_py_api/

examples/as_app/skeleton/src/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Simplest example."""
2+
23
from contextlib import asynccontextmanager
34

45
from fastapi import FastAPI

examples/as_app/talk_bot/src/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Example of an application(currency convertor) that uses Talk Bot APIs."""
2+
23
import re
34
from contextlib import asynccontextmanager
45
from typing import Annotated

examples/as_app/talk_bot_ai/src/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Example of an application that uses Python Transformers library with Talk Bot APIs."""
2+
23
import re
34
from contextlib import asynccontextmanager
45
from typing import Annotated

examples/as_app/to_gif/src/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Simplest example of files_dropdown_menu + notification."""
2+
23
import tempfile
34
from contextlib import asynccontextmanager
45
from os import path

nc_py_api/_deffered_error.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""DeferredError class taken from PIL._util.py file."""
22

3-
43
class DeferredError: # pylint: disable=too-few-public-methods
54
"""Allow failing import when using it in the client mode, without `app` dependencies."""
65

nc_py_api/_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Exceptions for the Nextcloud API."""
2+
23
from httpx import codes
34

45

nc_py_api/_misc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
For internal use, prototypes can change between versions.
44
"""
5+
56
import secrets
67
from base64 import b64decode
78
from datetime import datetime, timezone

nc_py_api/_preferences_ex.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Nextcloud API for working with apps V2's storage w/wo user context(table oc_appconfig_ex/oc_preferences_ex)."""
2+
23
import dataclasses
34
import typing
45

nc_py_api/_session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Session represents one connection to Nextcloud. All related stuff for these live here."""
2+
23
import typing
34
from abc import ABC, abstractmethod
45
from base64 import b64encode

0 commit comments

Comments
 (0)