Skip to content

Commit ca74c35

Browse files
author
Joakim Nordling
authored
Updates (#8)
Removed: - Support for Python 3.8, it was EOL already on 2024-10-07. A bunch of updates: - ReDoc to 2.4.0. - SwaggerUI to 5.19.0. - FastAPI favicon (also updated to pull it from GitHub due to permission error when pulling from old URL with urlretrieve). - Updated FastAPI requirement to >=0.109.1, older versions had some CVE according to skjold. Internal updates: - Run tests with python 3.12 and 3.13 as well. - Pre-commit hooks. - A lot of dev-dependencies. - Updated referenced GitHub actions. - Locked poetry to latest 1.8.x version in the GitHub workflows, had some issues in another library with 2.x and uploads to PyPI. - Updated a lot of the dependencies in the lockfile that were outdated; doesn't really make any difference for those who just install the final package.
1 parent 4c80073 commit ca74c35

11 files changed

Lines changed: 629 additions & 494 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout 🔁
14-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515

1616
- name: Set up Python 🐍
17-
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
17+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
1818
with:
1919
python-version: "3.10"
2020

2121
- name: Install Poetry and pre-commit ⚙️
22-
run: pip install poetry pre-commit
22+
run: pip install poetry==1.8.5 pre-commit
2323

2424
- name: Install dependencies 🛠
2525
run: poetry install

.github/workflows/tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ["3.8", "3.9", "3.10", "3.11"]
13+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1414
steps:
1515
- name: Checkout 🔁
16-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717

1818
- name: Set up Python ${{ matrix.python-version }} 🐍
19-
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
19+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222

2323
- name: Install Poetry and pre-commit ⚙️
24-
run: pip install poetry pre-commit
24+
run: pip install poetry==1.8.5 pre-commit
2525

2626
- name: Install dependencies 🛠
2727
run: poetry install

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v5.0.0
66
hooks:
77
- id: trailing-whitespace
88
exclude: |
@@ -33,19 +33,19 @@ repos:
3333
args: ["--fix=crlf"]
3434
files: \.bat$
3535
- repo: https://github.com/pycqa/isort
36-
rev: 5.12.0
36+
rev: 6.0.0
3737
hooks:
3838
- id: isort
3939
- repo: https://github.com/psf/black
40-
rev: 23.3.0
40+
rev: 25.1.0
4141
hooks:
4242
- id: black
4343
- repo: https://github.com/pycqa/flake8
44-
rev: 6.0.0
44+
rev: 7.1.2
4545
hooks:
4646
- id: flake8
4747
- repo: https://github.com/twu/skjold
48-
rev: v0.6.1
48+
rev: v0.6.2
4949
hooks:
5050
- id: skjold
5151
- repo: https://github.com/pre-commit/mirrors-prettier

fastapi_standalone_docs/scripts.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
import fastapi_standalone_docs
66

77
FASTAPI_FILES = [
8-
"https://fastapi.tiangolo.com/img/favicon.png",
8+
"https://raw.githubusercontent.com/tiangolo/fastapi/master/docs/en/docs/img/favicon.png",
99
"https://raw.githubusercontent.com/tiangolo/fastapi/master/LICENSE",
1010
]
1111

1212
SWAGGER_FILES = [
13-
"https://cdn.jsdelivr.net/npm/swagger-ui-dist@4/LICENSE",
14-
"https://cdn.jsdelivr.net/npm/swagger-ui-dist@4/swagger-ui.css",
15-
"https://cdn.jsdelivr.net/npm/swagger-ui-dist@4/swagger-ui-bundle.js",
13+
"https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.19.0/LICENSE",
14+
"https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.19.0/swagger-ui.css",
15+
"https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.19.0/swagger-ui-bundle.js",
1616
]
1717

1818
REDOC_FILES = [
19-
"https://cdn.jsdelivr.net/npm/redoc@2.0.0/bundles/redoc.standalone.js.LICENSE.txt",
20-
"https://cdn.jsdelivr.net/npm/redoc@2.0.0/bundles/redoc.standalone.js",
19+
"https://cdn.jsdelivr.net/npm/redoc@2.4.0/bundles/redoc.standalone.js.LICENSE.txt",
20+
"https://cdn.jsdelivr.net/npm/redoc@2.4.0/bundles/redoc.standalone.js",
2121
"https://cdn.redoc.ly/redoc/logo-mini.svg",
2222
]
2323

4.52 KB
Loading

fastapi_standalone_docs/static/redoc/redoc.standalone.js

Lines changed: 317 additions & 291 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fastapi_standalone_docs/static/redoc/redoc.standalone.js.LICENSE.txt

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
/*
2-
object-assign
3-
(c) Sindre Sorhus
4-
@license MIT
5-
*/
6-
71
/*!
8-
Copyright (c) 2018 Jed Watson.
9-
Licensed under the MIT License (MIT), see
10-
http://jedwatson.github.io/classnames
2+
Copyright (c) 2018 Jed Watson.
3+
Licensed under the MIT License (MIT), see
4+
http://jedwatson.github.io/classnames
115
*/
126

137
/*!
148
* ReDoc - OpenAPI/Swagger-generated API Reference Documentation
159
* -------------------------------------------------------------
16-
* Version: "2.0.0"
10+
* Version: "2.4.0"
1711
* Repo: https://github.com/Redocly/redoc
1812
*/
1913

@@ -31,7 +25,7 @@ object-assign
3125
* Licensed under MIT
3226
*/
3327

34-
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
28+
/*! @license DOMPurify 3.1.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.3/LICENSE */
3529

3630
/*!***************************************************
3731
* mark.js v8.11.1
@@ -41,42 +35,55 @@ object-assign
4135
*****************************************************/
4236

4337
/**
44-
* Prism: Lightweight, robust, elegant syntax highlighting
38+
* @license React
39+
* react-dom.production.min.js
4540
*
46-
* @license MIT <https://opensource.org/licenses/MIT>
47-
* @author Lea Verou <https://lea.verou.me>
48-
* @namespace
49-
* @public
41+
* Copyright (c) Facebook, Inc. and its affiliates.
42+
*
43+
* This source code is licensed under the MIT license found in the
44+
* LICENSE file in the root directory of this source tree.
5045
*/
5146

52-
/** @license React v0.20.2
53-
* scheduler.production.min.js
47+
/**
48+
* @license React
49+
* react.production.min.js
5450
*
5551
* Copyright (c) Facebook, Inc. and its affiliates.
5652
*
5753
* This source code is licensed under the MIT license found in the
5854
* LICENSE file in the root directory of this source tree.
5955
*/
6056

61-
/** @license React v16.13.1
62-
* react-is.production.min.js
57+
/**
58+
* @license React
59+
* scheduler.production.min.js
6360
*
6461
* Copyright (c) Facebook, Inc. and its affiliates.
6562
*
6663
* This source code is licensed under the MIT license found in the
6764
* LICENSE file in the root directory of this source tree.
6865
*/
6966

70-
/** @license React v17.0.2
71-
* react-dom.production.min.js
67+
/**
68+
* @license React
69+
* use-sync-external-store-shim.production.min.js
7270
*
7371
* Copyright (c) Facebook, Inc. and its affiliates.
7472
*
7573
* This source code is licensed under the MIT license found in the
7674
* LICENSE file in the root directory of this source tree.
7775
*/
7876

79-
/** @license React v17.0.2
77+
/**
78+
* Prism: Lightweight, robust, elegant syntax highlighting
79+
*
80+
* @license MIT <https://opensource.org/licenses/MIT>
81+
* @author Lea Verou <https://lea.verou.me>
82+
* @namespace
83+
* @public
84+
*/
85+
86+
/** @license React v16.13.1
8087
* react-is.production.min.js
8188
*
8289
* Copyright (c) Facebook, Inc. and its affiliates.
@@ -86,12 +93,10 @@ object-assign
8693
*/
8794

8895
/** @license React v17.0.2
89-
* react.production.min.js
96+
* react-is.production.min.js
9097
*
9198
* Copyright (c) Facebook, Inc. and its affiliates.
9299
*
93100
* This source code is licensed under the MIT license found in the
94101
* LICENSE file in the root directory of this source tree.
95102
*/
96-
97-
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */

fastapi_standalone_docs/static/swagger/swagger-ui-bundle.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fastapi_standalone_docs/static/swagger/swagger-ui.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)