Skip to content

examples: refactor a bit the examples

Codacy Production / Codacy Static Code Analysis required action Feb 21, 2024 in 0s

6 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 6
           

Complexity increasing per file
==============================
- examples/pgvector-embedder/01_setup_huggingface.py  1
- projects/vdk-plugins/vdk-storage/src/vdk/plugin/storage/file_storage.py  4
- projects/vdk-plugins/vdk-storage/src/vdk/plugin/storage/plugin_entry.py  1
- projects/vdk-plugins/vdk-storage/tests/jobs/job-using-a-plugin/10_dummy.py  1
- projects/vdk-plugins/vdk-storage/src/vdk/plugin/storage/database_storage.py  4
- projects/vdk-plugins/vdk-storage/tests/test_plugin.py  2
         

Complexity decreasing per file
==============================
+ examples/confluence-reader/fetch_confluence_space.py  -4
         

Clones added
============
- projects/vdk-plugins/vdk-storage/src/vdk/plugin/storage/file_storage.py  1
- projects/vdk-plugins/vdk-storage/src/vdk/plugin/storage/database_storage.py  3
         

See the complete overview on Codacy

Annotations

Check notice on line 4 in examples/pgvector-embedder/01_setup_huggingface.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

examples/pgvector-embedder/01_setup_huggingface.py#L4

'pathlib' imported but unused (F401)

Check warning on line 4 in examples/pgvector-embedder/01_setup_huggingface.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

examples/pgvector-embedder/01_setup_huggingface.py#L4

Unused import pathlib

Check warning on line 10 in examples/pgvector-embedder/30_create_schema.sql

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

examples/pgvector-embedder/30_create_schema.sql#L10

Expected TSQL Keyword to be capitalized

Check warning on line 7 in projects/vdk-plugins/vdk-storage/setup.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

projects/vdk-plugins/vdk-storage/setup.py#L7

String statement has no effect

Check warning on line 4 in projects/vdk-plugins/vdk-storage/tests/test_plugin.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

projects/vdk-plugins/vdk-storage/tests/test_plugin.py#L4

Unused import pathlib

Check warning on line 13 in projects/vdk-plugins/vdk-storage/tests/test_plugin.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

projects/vdk-plugins/vdk-storage/tests/test_plugin.py#L13

String statement has no effect