Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed: use python-dotenv to write the env file #525

Merged
merged 3 commits into from
Aug 6, 2024
Merged

Conversation

mexicat
Copy link
Collaborator

@mexicat mexicat commented Aug 2, 2024

  • Use the python-dotenv library to write the .env file instead of naively creating a file, which would completely overwrite an existing one.

Copy link

github-actions bot commented Aug 2, 2024

Name                                               Stmts   Miss  Cover
----------------------------------------------------------------------
konfuzio_sdk/__init__.py                               8      1    88%
konfuzio_sdk/api.py                                  490     45    91%
konfuzio_sdk/bento/__init__.py                         0      0   100%
konfuzio_sdk/bento/extraction/__init__.py              0      0   100%
konfuzio_sdk/bento/extraction/schemas.py              57      7    88%
konfuzio_sdk/bento/extraction/utils.py                71     41    42%
konfuzio_sdk/cli.py                                   40      0   100%
konfuzio_sdk/data.py                                2390    258    89%
konfuzio_sdk/evaluate.py                             448     35    92%
konfuzio_sdk/extras.py                                73     17    77%
konfuzio_sdk/normalize.py                            386     25    94%
konfuzio_sdk/regex.py                                107      0   100%
konfuzio_sdk/samples.py                              149      0   100%
konfuzio_sdk/settings_importer.py                     35      0   100%
konfuzio_sdk/tokenizer/__init__.py                     0      0   100%
konfuzio_sdk/tokenizer/base.py                       173     29    83%
konfuzio_sdk/tokenizer/paragraph_and_sentence.py     174    151    13%
konfuzio_sdk/tokenizer/regex.py                       96      2    98%
konfuzio_sdk/trainer/__init__.py                       0      0   100%
konfuzio_sdk/trainer/base.py                         185     29    84%
konfuzio_sdk/trainer/document_categorization.py      792     76    90%
konfuzio_sdk/trainer/file_splitting.py               549     47    91%
konfuzio_sdk/trainer/image.py                         46     17    63%
konfuzio_sdk/trainer/information_extraction.py      1096    115    90%
konfuzio_sdk/trainer/tokenization.py                 136     97    29%
konfuzio_sdk/trainer/utils.py                         58      1    98%
konfuzio_sdk/urls.py                                 150      6    96%
konfuzio_sdk/utils.py                                428     92    79%
----------------------------------------------------------------------
TOTAL                                               8137   1091    87%

@zypriafl zypriafl merged commit 3f8e4bd into master Aug 6, 2024
4 of 9 checks passed
@zypriafl zypriafl deleted the 12602-dotenv branch August 6, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants