Skip to content

Commit 3399a8a

Browse files
Merge pull request #1 from recursivezero/develop
Develop
2 parents 7927d5a + 1236b76 commit 3399a8a

23 files changed

Lines changed: 375 additions & 212 deletions

.env.local

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
#Note specify the values within double-quotes("")
22
ENVIRONMENT=development
33

4-
AWS_BUCKET_NAME=
5-
AWS_ACCESS_KEY_ID=
6-
AWS_SECRET_ACCESS_KEY=
7-
AWS_REGION=
8-
9-
GEMINI_API=
10-
GITHUB_TOKEN="github_pat_your_github_token"
11-
GROQ_API="gsk_your_groq_api_key_X"
12-
13-
MONGODB_URI="mongodb://admin:1234@127.0.0.1:27017/?retryWrites=true&w=majority&appName=sample"
14-
DATABASE_NAME="tz-server"
4+
MONGODB_URI="mongodb://<user>:<password>@127.0.0.1:27017/?retryWrites=true&w=majority&appName=sample"
5+
DATABASE_NAME="sample"

.streamlit/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ toolbarMode = "viewer"
1111
hideTopBar = false
1212

1313
[theme]
14-
base = "light"
14+
base = "dark"
1515
primaryColor = "#4b9fffff"
1616
backgroundColor = "#FFFFFFFF"
1717
secondaryBackgroundColor = "#F0F2F6FF"

.streamlit/secrets.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ GROQ_API = "gsk_"
1010

1111
[mongodb]
1212
MONGODB_URI = "mongodb://admin:1234@127.0.0.1:27017/sample-server?authSource=admin&retryWrites=true&w=majority&appName=sample"
13-
DATABASE_NAME = "tz-server"
13+
DATABASE_NAME = "sample"

.vscode/Python.code-profile

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.vscode/dictionaries/project-words.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ stefanzweifel
8383
streamlit
8484
Succesfully
8585
sucess
86-
Threadzip
86+
Sample
8787
tobytes
8888
torchvision
8989
txtl

.vscode/extensions.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"aaron-bond.better-comments",
1313
"Heron.firefox-devtools-theme",
1414
"GitHub.github-vscode-theme",
15-
"ms-python.python",
16-
"yzhang.markdown-all-in-one"
15+
"yzhang.markdown-all-in-one",
16+
"tamasfe.even-better-toml",
17+
"ms-python.vscode-python-envs"
1718
]
18-
}
19+
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ All notable changes to this repository will be documented in this file.
77
- Initial release.
88

99
Following version changes are required to be documented.
10+
11+
## [0.0.5]
12+
13+
- update env.sample

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Ensure below files are configured (create if not exist) properly to run the proj
4040

4141
```bash
4242
poetry lock --no-cache --regenerate
43-
poetry install --with dev
43+
poetry install --all-extras --with dev
4444
```
4545

4646
Or manually
@@ -126,22 +126,35 @@ pip install sample
126126

127127
current version will be printed on start of above commands.
128128

129+
## Install GIT hooks
130+
131+
these hooks will
132+
133+
- Check for lint and audit for security before commit
134+
- Append branch name in commit message
135+
- Generate requirements.txt on checkout on new branch
136+
137+
```bash
138+
# Install git hooks
139+
poetry run ./scripts/setup-hooks.sh
140+
```
141+
142+
there is `.vscode/Python.code-profile` file; import this as a profile in vscode which include necessary extension for python development.
129143

130144
## Troubleshooting
131145

132146
sometimes there might be chances that virtual environment get corrupted then delete the old virtual environment and start afresh.
133147

134148
```sh
135-
poetry env info
136-
# this will provide virtual environment name
149+
poetry env info
150+
# this will provide virtual environment name
137151
poetry env remove <environment-full-name>
138-
```
152+
```
139153

140154
## License
141155

142156
[MIT](./LICENSE)
143157

144-
145158
## References
146159

147160
- [Python Downloads](https://www.python.org/downloads)
@@ -150,7 +163,3 @@ poetry env remove <environment-full-name>
150163
- [Poetry Docs](https://python-poetry.org/docs/)
151164
- [MyPy Docs](https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports)
152165
- [Useful Poetry commands](./docs//POETRY_COMMANDS.md)
153-
154-
155-
156-

packages.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

poetry.lock

Lines changed: 117 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)