[API] update api for multi file and pdf support #1522
4 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 4
Complexity increasing per file
==============================
- api/app/utils.py 6
- api/tests/utils/test_vision.py 5
- api/tests/utils/test_utils.py 3
- api/app/routes/kie.py 2
- api/tests/routes/test_kie.py 3
- api/tests/routes/test_recognition.py 5
- api/app/routes/ocr.py 2
- api/app/routes/detection.py 3
- api/app/routes/recognition.py 2
- api/tests/routes/test_ocr.py 2
Complexity decreasing per file
==============================
+ api/tests/routes/test_detection.py -2
Clones added
============
- api/tests/routes/test_kie.py 2
- api/app/schemas.py 4
- api/tests/routes/test_detection.py 1
- api/tests/routes/test_ocr.py 2
- api/tests/conftest.py 4
See the complete overview on Codacy
Annotations
Check warning on line 19 in api/app/routes/detection.py
codacy-production / Codacy Static Code Analysis
api/app/routes/detection.py#L19
as argument
Check warning on line 18 in api/app/routes/kie.py
codacy-production / Codacy Static Code Analysis
api/app/routes/kie.py#L18
as argument
Check warning on line 18 in api/app/routes/ocr.py
codacy-production / Codacy Static Code Analysis
api/app/routes/ocr.py#L18
as argument
Check warning on line 20 in api/app/routes/recognition.py
codacy-production / Codacy Static Code Analysis
api/app/routes/recognition.py#L20
as argument