Enable pylint in NG-SA
Change-Id: Icd02cdb18d2a014f75e78e5ba527ca6ede550178
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osm_webhook_translator/requirements-dist.txt b/osm_webhook_translator/requirements-dist.txt
index 64ae136..334e0e6 100644
--- a/osm_webhook_translator/requirements-dist.txt
+++ b/osm_webhook_translator/requirements-dist.txt
@@ -22,7 +22,7 @@
# via -r osm_webhook_translator/requirements-dist.in
tomli==2.0.1
# via setuptools-scm
-typing-extensions==4.5.0
+typing-extensions==4.6.0
# via setuptools-scm
# The following packages are considered to be unsafe in a requirements file:
diff --git a/osm_webhook_translator/requirements.txt b/osm_webhook_translator/requirements.txt
index aab3c69..3989987 100644
--- a/osm_webhook_translator/requirements.txt
+++ b/osm_webhook_translator/requirements.txt
@@ -22,7 +22,7 @@
# via requests
click==8.1.3
# via uvicorn
-fastapi==0.95.1
+fastapi==0.95.2
# via -r osm_webhook_translator/requirements.in
h11==0.14.0
# via uvicorn
@@ -30,15 +30,15 @@
# via
# anyio
# requests
-pydantic==1.10.7
+pydantic==1.10.8
# via fastapi
-requests==2.30.0
+requests==2.31.0
# via -r osm_webhook_translator/requirements.in
sniffio==1.3.0
# via anyio
-starlette==0.26.1
+starlette==0.27.0
# via fastapi
-typing-extensions==4.5.0
+typing-extensions==4.6.0
# via pydantic
urllib3==2.0.2
# via requests
diff --git a/osm_webhook_translator/setup.py b/osm_webhook_translator/setup.py
index 3323757..9cdff36 100644
--- a/osm_webhook_translator/setup.py
+++ b/osm_webhook_translator/setup.py
@@ -30,7 +30,7 @@
name=_name,
description=_description,
long_description=README,
- version=__version__, # noqa: F821
+ version=__version__, # noqa: F821 # pylint: disable=E0602
author="ETSI OSM",
author_email="osmsupport@etsi.org",
maintainer="ETSI OSM",
diff --git a/osm_webhook_translator/src/osm_webhook_translator/_version.py b/osm_webhook_translator/src/osm_webhook_translator/_version.py
new file mode 100644
index 0000000..8042457
--- /dev/null
+++ b/osm_webhook_translator/src/osm_webhook_translator/_version.py
@@ -0,0 +1,18 @@
+#######################################################################################
+# Copyright ETSI Contributors and Others.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#######################################################################################
+__version__ = version = '12.0.4.dev21+g4e36505'
+__version_tuple__ = version_tuple = (12, 0, 4, 'dev21', 'g4e36505')
diff --git a/osm_webhook_translator/src/osm_webhook_translator/main.py b/osm_webhook_translator/src/osm_webhook_translator/main.py
index 6e9e718..7c4404c 100644
--- a/osm_webhook_translator/src/osm_webhook_translator/main.py
+++ b/osm_webhook_translator/src/osm_webhook_translator/main.py
@@ -54,7 +54,7 @@
# timeout and retries
except Exception as e:
logger.error(f"HTTP error: {repr(e)}")
- raise requests.HTTPException(status_code=403, detail=repr(e))
+ raise requests.HTTPError(status_code=403, detail=repr(e))
@app.post("/{input_endpoint}")