Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#44)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](pre-commit/pre-commit-hooks@v4.3.0...v4.4.0)
- [github.com/psf/black: 22.8.0 → 22.12.0](psf/black@22.8.0...22.12.0)
- [github.com/asottile/pyupgrade: v2.37.3 → v3.3.1](asottile/pyupgrade@v2.37.3...v3.3.1)
- [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](PyCQA/flake8@5.0.4...6.0.0)
- [github.com/pre-commit/mirrors-mypy: v0.971 → v0.991](pre-commit/mirrors-mypy@v0.971...v0.991)
- [github.com/sirosen/check-jsonschema: 0.18.2 → 0.19.2](python-jsonschema/check-jsonschema@0.18.2...0.19.2)

* Move comments to individual lines

* Make collection_name optional for createCollection

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pablo de Andres <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and pablo-de-andres authored Dec 13, 2022
1 parent a241c1a commit a845557
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
15 changes: 10 additions & 5 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
[flake8]
ignore =
E501 # Line length handled by black.
W503 # Line break before binary operator, preferred formatting for black.
E203 # Whitespace before ':', preferred formatting for black.
# Line length handled by black.
E501,
# Line break before binary operator, preferred formatting for black.
W503,
# Whitespace before ':', preferred formatting for black.
E203,
per-file-ignores =
marketplace_standard_app_api/main.py: U100 # Most function arguments are not used.
marketplace_standard_app_api/routers/*.py: U100 # Most function arguments are not used.
# Most function arguments are not used.
marketplace_standard_app_api/main.py: U100
# Most function arguments are not used.
marketplace_standard_app_api/routers/*.py: U100
tests/*: U100, U101
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-json
- id: check-toml
Expand All @@ -16,7 +16,7 @@ repos:
- id: yamlfmt

- repo: https://github.com/psf/black
rev: 22.8.0
rev: 22.12.0
hooks:
- id: black

Expand All @@ -27,19 +27,19 @@ repos:
args: [--profile, black, --filter-files]

- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
args: [--count, --show-source, --statistics]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
rev: v0.991
hooks:
- id: mypy
language_version: '3.10'
Expand All @@ -53,7 +53,7 @@ repos:
args: [--config-file=pyproject.toml]

- repo: https://github.com/sirosen/check-jsonschema
rev: 0.18.2
rev: 0.19.2
hooks:
- id: check-github-workflows

Expand Down
2 changes: 1 addition & 1 deletion marketplace_standard_app_api/routers/object_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def list_datasets(
description="Create a collection.\n" + CREATE_COLLECTION_DESCRIPTION,
)
async def create_collection(
request: Request, collection_name: CollectionName = None
request: Request, collection_name: Optional[CollectionName] = None
) -> Response:
"""Create a new or replace an existing collection."""
raise HTTPException(status_code=501, detail="Not implemented.")
Expand Down

0 comments on commit a845557

Please sign in to comment.