Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CloWM S3-Proxy Service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Computational Metagenomics
CloWM
CloWM S3-Proxy Service
Commits
3350a872
Verified
Commit
3350a872
authored
1 year ago
by
Daniel Göbel
Browse files
Options
Downloads
Patches
Plain Diff
Add missing server prefix in OpenAPI schema
#69
parent
d150a9ee
No related branches found
No related tags found
2 merge requests
!71
Delete dev branch
,
!66
Resolve "Add missing server prefix in OpenAPI schema"
Pipeline
#39735
passed
1 year ago
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.pre-commit-config.yaml
+2
-2
2 additions, 2 deletions
.pre-commit-config.yaml
app/main.py
+3
-1
3 additions, 1 deletion
app/main.py
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
requirements-dev.txt
+1
-1
1 addition, 1 deletion
requirements-dev.txt
with
7 additions
and
5 deletions
.pre-commit-config.yaml
+
2
−
2
View file @
3350a872
...
...
@@ -15,13 +15,13 @@ repos:
-
id
:
check-merge-conflict
-
id
:
check-ast
-
repo
:
https://github.com/psf/black
rev
:
23.1
0.1
rev
:
23.1
1.0
hooks
:
-
id
:
black
files
:
app
args
:
[
--check
]
-
repo
:
https://github.com/charliermarsh/ruff-pre-commit
rev
:
'
v0.1.
4
'
rev
:
'
v0.1.
5
'
hooks
:
-
id
:
ruff
-
repo
:
https://github.com/PyCQA/isort
...
...
This diff is collapsed.
Click to expand it.
app/main.py
+
3
−
1
View file @
3350a872
...
...
@@ -40,8 +40,10 @@ app = FastAPI(
generate_unique_id_function
=
custom_generate_unique_id
,
# license_info={"name": "MIT", "url": "https://mit-license.org/"},
root_path
=
settings
.
API_PREFIX
,
openapi_url
=
None
,
# create it manual
e
to enable caching on client side
openapi_url
=
None
,
# create it manual
ly
to enable caching on client side
)
if
settings
.
API_PREFIX
:
# pragma: no cover
app
.
servers
.
insert
(
0
,
{
"
url
"
:
settings
.
API_PREFIX
})
if
settings
.
OTLP_GRPC_ENDPOINT
is
not
None
and
len
(
settings
.
OTLP_GRPC_ENDPOINT
)
>
0
:
# pragma: no cover
resource
=
Resource
(
attributes
=
{
SERVICE_NAME
:
"
clowm-s3proxy-service
"
})
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
3350a872
...
...
@@ -8,7 +8,7 @@ line-length = 120
[tool.ruff]
line-length
=
120
target-version
=
"py31
0
"
target-version
=
"py31
1
"
[tool.mypy]
plugins
=
[
"pydantic.mypy"
,
"sqlalchemy.ext.mypy.plugin"
]
...
...
This diff is collapsed.
Click to expand it.
requirements-dev.txt
+
1
−
1
View file @
3350a872
...
...
@@ -5,7 +5,7 @@ pytest-cov>=4.1.0,<4.2.0
coverage[toml]>=7.3.0,<7.4.0
# Linters
ruff>=0.1.0,<0.2.0
black>=23.1
0
.0,<23.1
1
.0
black>=23.1
1
.0,<23.1
2
.0
isort>=5.12.0,<5.13.0
mypy>=1.6.0,<1.7.0
# stubs for mypy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment