Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 6a3b112

Browse files
committed
1.4.0
1 parent b430ada commit 6a3b112

23 files changed

+204
-229
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ type-checking-pydantic-enabled = true
66
classmethod-decorators =
77
classmethod
88
validator
9+
per-file-ignores =
10+
tests/*:SCS108

.pre-commit-config.yaml

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0
3+
rev: v4.4.0
44
hooks:
55
- id: check-ast
66
- id: check-case-conflict
@@ -10,29 +10,34 @@ repos:
1010
exclude: "\\.idea/(.)*"
1111
- id: trailing-whitespace
1212
- repo: https://github.com/asottile/pyupgrade
13-
rev: v2.38.0
13+
rev: v3.3.0
1414
hooks:
1515
- id: pyupgrade
16-
args: ["--py37-plus"]
16+
args: ["--py38-plus"]
17+
- repo: https://github.com/hadialqattan/pycln
18+
rev: v2.1.2
19+
hooks:
20+
- id: pycln
21+
args: [--config=pyproject.toml]
1722
- repo: https://github.com/pycqa/isort
1823
rev: 5.10.1
1924
hooks:
2025
- id: isort
2126
- repo: https://github.com/psf/black
22-
rev: 22.8.0
27+
rev: 22.10.0
2328
hooks:
2429
- id: black
2530
args: [--config=./pyproject.toml]
2631
- repo: https://github.com/codespell-project/codespell
27-
rev: v2.2.1
32+
rev: v2.2.2
2833
hooks:
2934
- id: codespell
3035
- repo: https://github.com/asottile/blacken-docs
3136
rev: v1.12.1
3237
hooks:
3338
- id: blacken-docs
3439
- repo: https://github.com/pre-commit/mirrors-prettier
35-
rev: "v3.0.0-alpha.0"
40+
rev: "v3.0.0-alpha.4"
3641
hooks:
3742
- id: prettier
3843
- repo: https://github.com/pycqa/bandit
@@ -42,7 +47,7 @@ repos:
4247
exclude: "test_*"
4348
args: ["-iii", "-ll", "-s=B308,B703"]
4449
- repo: https://github.com/hadialqattan/pycln
45-
rev: v2.1.1
50+
rev: v2.1.2
4651
hooks:
4752
- id: pycln
4853
args: [--config=pyproject.toml]
@@ -55,9 +60,15 @@ repos:
5560
rev: v1.5.0
5661
hooks:
5762
- id: docformatter
58-
args: [--in-place]
59-
- repo: https://gitlab.com/pycqa/flake8
60-
rev: 3.9.2
63+
args:
64+
[
65+
--in-place,
66+
--close-quotes-on-newline,
67+
--wrap-descriptions=120,
68+
--wrap-summaries=120,
69+
]
70+
- repo: https://github.com/PyCQA/flake8
71+
rev: 6.0.0
6172
hooks:
6273
- id: flake8
6374
additional_dependencies:
@@ -68,23 +79,34 @@ repos:
6879
"flake8-print",
6980
"flake8-simplify",
7081
"flake8-type-checking",
71-
"flake8-pytest-style",
7282
"flake8-implicit-str-concat",
7383
"flake8-noqa",
84+
"flake8-return",
85+
"flake8-secure-coding-standard",
86+
"flake8-encodings",
87+
"flake8-use-fstring",
88+
"flake8-use-pathlib",
7489
]
7590
- repo: https://github.com/johnfraney/flake8-markdown
7691
rev: v0.4.0
7792
hooks:
7893
- id: flake8-markdown
94+
- repo: https://github.com/pycqa/pydocstyle
95+
rev: 6.1.1
96+
hooks:
97+
- id: pydocstyle
98+
exclude: "test*|examples*"
99+
additional_dependencies:
100+
- pydocstyle[toml]
79101
- repo: https://github.com/pycqa/pylint
80-
rev: "v2.15.2"
102+
rev: "v2.15.7"
81103
hooks:
82104
- id: pylint
83105
exclude: "test_*|docs"
84106
args: ["--unsafe-load-any-extension=y"]
85107
additional_dependencies: [pydantic, mkdocs_gen_files]
86108
- repo: https://github.com/pre-commit/mirrors-mypy
87-
rev: "v0.971"
109+
rev: "v0.991"
88110
hooks:
89111
- id: mypy
90112
additional_dependencies: [pydantic, mkdocs_gen_files]

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,7 @@
2020
</div>
2121

2222
This library is a fork of [openapi-schema-pydantic](https://github.com/kuimono/openapi-schema-pydantic). Its used
23-
and is bundled by [Starlite](https://github.com/starlite-api/starlite). You can
24-
see [this issue](https://github.com/kuimono/openapi-schema-pydantic/issues/24) in the upstream repository regarding it.
25-
26-
In comparison to the original library this library has:
27-
28-
1. updated docstrings with fixed links
29-
2. no typing issues
30-
3. updated types
31-
4. updated utilities
32-
5. updated export paths
33-
6. continuous maintenance
23+
and is bundled by [Starlite](https://github.com/starlite-api/starlite).
3424

3525
Usage is mostly identical to upstream package.
3626

0 commit comments

Comments
 (0)