Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 01c5e7e

Browse files
authored
Release v0.0.3 (#1)
1 parent 4a4452a commit 01c5e7e

25 files changed

+12925
-2600
lines changed

.flake8

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[flake8]
2-
extend-ignore = E203
2+
extend-ignore =
3+
# whitespace before ‘,’, ‘;’, or ‘:’
4+
E203
35
per-file-ignores =
6+
# module imported but unused
47
__init__.py: F401
58
max-line-length = 99

.pre-commit-config.yaml

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v4.6.0
44
hooks:
55
- id: check-ast
66
- id: check-case-conflict
@@ -16,6 +16,9 @@ repos:
1616
- id: detect-private-key
1717
- id: end-of-file-fixer
1818
- id: mixed-line-ending
19+
- id: name-tests-test
20+
args:
21+
- --pytest-test-first
1922
- id: no-commit-to-branch
2023
- id: pretty-format-json
2124
args:
@@ -25,37 +28,45 @@ repos:
2528
- id: requirements-txt-fixer
2629
- id: trailing-whitespace
2730
- repo: https://github.com/asottile/pyupgrade
28-
rev: v3.15.0
31+
rev: v3.15.2
2932
hooks:
3033
- id: pyupgrade
3134
args:
3235
- --keep-runtime-typing
3336
- --py311-plus
37+
stages:
38+
- manual
3439
- repo: https://github.com/pycqa/autoflake
35-
rev: v2.2.1
40+
rev: v2.3.1
3641
hooks:
3742
- id: autoflake
3843
args:
3944
- src
4045
pass_filenames: false
46+
stages:
47+
- manual
4148
- repo: https://github.com/pycqa/isort
4249
rev: 5.13.2
4350
hooks:
4451
- id: isort
4552
args:
4653
- src
4754
pass_filenames: false
55+
stages:
56+
- manual
4857
- repo: https://github.com/psf/black
49-
rev: 24.1.0
58+
rev: 24.3.0
5059
hooks:
5160
- id: black
5261
additional_dependencies:
5362
- .[jupyter]
5463
args:
5564
- src
5665
pass_filenames: false
66+
stages:
67+
- manual
5768
- repo: https://github.com/pycqa/bandit
58-
rev: 1.7.7
69+
rev: 1.7.8
5970
hooks:
6071
- id: bandit
6172
args:
@@ -73,8 +84,10 @@ repos:
7384
args:
7485
- src
7586
pass_filenames: false
87+
stages:
88+
- manual
7689
- repo: https://github.com/PyCQA/pylint
77-
rev: v3.0.3
90+
rev: v3.1.0
7891
hooks:
7992
- id: pylint
8093
args:
@@ -85,14 +98,18 @@ repos:
8598
stages:
8699
- manual
87100
- repo: https://github.com/astral-sh/ruff-pre-commit
88-
rev: v0.1.14
101+
rev: v0.3.5
89102
hooks:
90103
- id: ruff
91104
args:
92105
- src
93106
pass_filenames: false
107+
- id: ruff-format
108+
args:
109+
- src
110+
pass_filenames: false
94111
- repo: https://github.com/jendrikseipp/vulture
95-
rev: v2.10
112+
rev: v2.11
96113
hooks:
97114
- id: vulture
98115
pass_filenames: false
@@ -116,12 +133,18 @@ repos:
116133
- --target-version
117134
- py311
118135
- repo: https://github.com/econchick/interrogate
119-
rev: 1.5.0
136+
rev: 1.6.0
120137
hooks:
121138
- id: interrogate
122139
args:
123140
- src
124141
pass_filenames: false
142+
- repo: https://github.com/numpy/numpydoc
143+
rev: v1.7.0
144+
hooks:
145+
- id: numpydoc-validation
146+
stages:
147+
- manual
125148
- repo: https://github.com/tox-dev/pyproject-fmt
126149
rev: 1.7.0
127150
hooks:
@@ -140,6 +163,19 @@ repos:
140163
- --write-changes
141164
stages:
142165
- manual
166+
- repo: https://github.com/crate-ci/typos
167+
rev: v1.20.4
168+
hooks:
169+
- id: typos
170+
args:
171+
- --force-exclude
172+
- --write-changes
173+
- --locale
174+
- en-gb
175+
- --format
176+
- brief
177+
stages:
178+
- manual
143179
default_language_version:
144180
python: python3.11
145181
fail_fast: false

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Anirban Ray
3+
Copyright (c) 2023-2024 Anirban Ray
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
project = "query-package-documentation"
1010
version = str(generative_ai.__version__)
11-
project_copyright = "2024, Anirban Ray"
11+
project_copyright = "2023-2024, Anirban Ray"
1212
author = "Anirban Ray"
1313
release = f"v{version}"
1414

docs/source/guidelines/CLI.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ Database generation complete: '/full/path/to/working/directory/vector_database'.
3535
$ docs-cli answer-query "How many modules are there in information retrieval sub-package?" --embedding-model "all-mpnet-base-v2" --database-directory "vector_database" --search-type "similarity" --number-of-documents 5 --language-model-type "standard_transformers" --standard-pipeline-type "text2text-generation" --standard-model-name "google/flan-t5-large"
3636
Query: How many modules are there in information retrieval sub-package?
3737
Answer: 5
38-
Duration: 2.28 seconds
38+
Duration: 1.69 seconds
3939
Source 1: 'information_retrieval' package has 5 many modules.
4040
Source 2: Modules of 'information_retrieval' package are as follows: 1. orchestrate_retrieval 2. step_1_retrieval 3. step_2_retrieval 4. step_3_retrieval 5. utils_retrieval.
41-
Source 3: 'information_retrieval' package has 23 many public exports.
41+
Source 3: 'information_retrieval' package has 22 many public exports.
4242
Source 4: Hierarchy of 'information_retrieval' package is as follows: 1. generative_ai 2. information_retrieval.
4343
Source 5: Hierarchy of 'utils_retrieval' module is as follows: 1. generative_ai 2. information_retrieval 3. utils_retrieval.
4444
```
@@ -50,7 +50,7 @@ $ docs-cli answer-query "What are different types of retrieval supported by this
5050
Query: What are different types of retrieval supported by this package?
5151
Answer: MMR and Similarity.
5252

53-
Duration: 20.75 seconds
53+
Duration: 22.97 seconds
5454
Source 1: The following is the documentation of 'RetrievalType' object: 'Define supported retrieval types.'.
5555
Source 2: 'information_retrieval' package has 5 many modules.
5656
Source 3: Names of different members of 'RetrievalType' enum are as follows: 1. MMR 2. SIMILARITY.
@@ -64,7 +64,7 @@ Source 5: The following is the documentation of 'information_retrieval' package:
6464
$ docs-cli answer-query "List public exports of dataset generation package." --embedding-model "all-mpnet-base-v2" --database-directory "vector_database" --search-type "mmr" --number-of-documents 5 --initial-number-of-documents 10 --language-model-type "quantised_ctransformers" --quantised-model-name "TheBloke/Mistral-7B-v0.1-GGUF" --quantised-model-file "mistral-7b-v0.1.Q4_K_M.gguf" --quantised-model-type "mistral"
6565
Query: List public exports of dataset generation package.
6666
Answer: The following is the list of public exports of 'dataset_generation' package: 1. JSONDataset 2. JSONDocument 3. generate_json_dataset 4. generate_member_dataset 5. generate_module_dataset 6. generate_package_dataset 7. generate_raw_datasets 8. get_all_member_details 9. get_all_module_contents 10. get_all_package_contents 11. load_json_dataset 12. store_json_dataset.
67-
Duration: 58.37 seconds
67+
Duration: 57.91 seconds
6868
Source 1: 'dataset_generation' package has 12 many public exports.
6969
Source 2: Documentation of 'generate_package_dataset' function lacks any examples.
7070
Source 3: The following is the documentation of 'generate_raw_datasets' object: 'Generate all retrieval and tuning documents for exploring documentation of a package.

0 commit comments

Comments
 (0)