-
Notifications
You must be signed in to change notification settings - Fork 0
Update dev to main #4
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
Closed
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
dfa0247
Merge pull request #1 from connor33341/dev
connor33341 8fd33e7
v0.2.1
connor33341 2ab9de4
version 0.2.2
connor33341 99efee3
Move legacy errors
connor33341 44a6267
update init
connor33341 5d5942b
update kvtypemap
connor33341 ccdef53
fetch version from KVStructLoader
connor33341 d9be070
add glovel settings
connor33341 55e395d
Update TODO.md
connor33341 be9d9ce
Update TODO.md
connor33341 f74ee64
add some pytest targets
connor33341 8c7f527
depricate some stuff, and fix a few things
connor33341 7f91371
update the config.json standard, and refactor some code
connor33341 0c91e0e
update docs, and add some stuff
connor33341 f7d6b03
add extra args to CLI, and fix an outdated import
connor33341 818e7b0
update CLI
connor33341 9ada4b5
update CLI
connor33341 85eeb1a
Update kvprocessor/kvvalidator.py
connor33341 6b7d6fc
Update kvprocessor/cli.py
connor33341 2192f5b
Update kvprocessor/kvglobalsettings.py
connor33341 652371f
update test
connor33341 15e57e4
add extra functionality to kvenvloader
connor33341 6a89c5e
update test.sh
connor33341 3b5898b
workflow
connor33341 b244726
patch some bugs
connor33341 3b03be8
Update kvprocessor/kvmanifestloader.py
connor33341 b3695c6
fix validation bug, and spelling error
connor33341 b4413cb
update TODO.md
connor33341 9e19b24
Update test.sh, and add a configuration
connor33341 16bc819
ignore mypycache
connor33341 8c6c28c
fix type issues
connor33341 3d5ce63
Update kvprocessor/kvprocessor.py
connor33341 8048e9e
update kvmanifest standard
connor33341 50e71b5
update README.md
connor33341 135f6bf
Create SECURITY.md
connor33341 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: Run Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| run-tests: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.x' | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| python -m pip install -r test/requirements.txt | ||
|
|
||
| - name: Make test.sh executable | ||
| run: chmod +x test.sh | ||
|
|
||
| - name: Run test.sh | ||
| run: ./test.sh | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| dist | ||
| .pypirc | ||
| struct | ||
| struct | ||
| *.log | ||
| versions | ||
| .mypy_cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Security Policy | ||
|
|
||
| ## Supported Versions | ||
|
|
||
| Versions below `0.1.7` are no longer supproted. `0.2.12`, and `0.2.14-alpha` are both not supproted. Migrate to `0.2.14` w/o the alpha designation, for a stable release. | ||
|
|
||
| | Version | Supported | | ||
| | ------- | ------------------ | | ||
| | 0.2.14+ | :white_check_mark: | | ||
| | 0.2.12 | :x: | | ||
| | 0.2.1-2 | :x: | | ||
| | 0.1.10+ | :white_check_mark: | | ||
| | < 0.1.7 | :x: | | ||
|
|
||
| ## Reporting a Vulnerability | ||
|
|
||
| Contact the developer: <connor@connor33341.dev> \ | ||
| \ | ||
| Vunerabilites are rare, on this library. However, there is still a potental for them to exist. Please report these, so that they can be delt with accordingly. | ||
| There is no set style inwhich you have to submit a Vunerability. However, I would recomend being detailed, and having the information of what file or library is causing the issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # TODO | ||
|
|
||
| ### Documentation: | ||
| - Create a doc/wiki with mkdocs | ||
| - Update `README.md` to have basic examples for 0.2.x versions of the API | ||
|
|
||
| ### Testing: | ||
| - Update test.py to test for most usecases with the 0.2.x API | ||
| - Use pytest aswell | ||
| - Create a GHAction to makesure that all tests are passed. | ||
|
|
||
| ### API: | ||
| - Migrate to `kvprocessor.errors` for custom errors | ||
| - Update cli to support 0.2.x verions of the API | ||
| - Expand `kvprocessor.kvtypemap` to support more types. | ||
| - Update `kvprocessor.kvmanifestloader` to be more feature rich | ||
| - Fix the style, so it will lint correctly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,26 @@ | ||
| __version__ = "0.1.12" | ||
| __version__ = "0.2.14" | ||
|
|
||
| from .kvprocessor import KVProcessor | ||
| from .kvenvloader import LoadEnv | ||
| from .kvenvloader import load_env, LoadEnv | ||
| from .kvstructloader import KVStructLoader | ||
| from .errors import KVProcessorError, InvalidKVFileError, MissingEnvironmentVariableError, NamespaceNotFoundError, InvalidNamespaceError | ||
| from .kvfileexporter import KVFileExporter | ||
| from .kvfilemerger import KVFileMerger | ||
| from .kvfileutils import ( | ||
| search_kv_files, | ||
| copy_kv_file, | ||
| delete_kv_file, | ||
| ) | ||
| from .kvdiff import KVFileDiffChecker | ||
| from .kvnamespacemanager import NamespaceManager as KVNamespaceManager | ||
| from .kvmanifestloader import KVManifestLoader | ||
| from .kvversionmanager import KVVersionManager | ||
| from .kvdiff import KVFileDiffChecker | ||
| from .kvvalidator import KVFileValidator, validate_kv_file, validate_kv_key, validate_kv_value | ||
| from .kvtypemap import get_type_map, set_type_map, remove_type_map, has_type_map, clear_type_map, add_type_map | ||
| from .kvglobalsettings import set_version, get_version, get_version_tuple, get_version_major, get_version_minor | ||
| from .util.errors import KVProcessorError, InvalidKVFileError, MissingEnvironmentVariableError, NamespaceNotFoundError, InvalidNamespaceError | ||
| from .util.warnings import deprecated as kv_deprecated_warning | ||
| from .util.log import log as kv_log | ||
|
|
||
| # CLI | ||
| from .cli import main as kv_cli_main # idealy you dont use this, and use cli directly, however, if you are lazy, just import it, then run kvprocessor.kv_cli_main() to run the CLI |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions