Closed jhanley634 closed 2 months ago
This pull request introduces several changes to improve code organization, error handling, and secret management. The main focus is on enhancing the credentials handling system, adding new utility functions, and updating tests to accommodate these changes.
Change | Details | Files |
---|---|---|
Improved credentials handling and API key management |
|
src/bboard/util/credentials.py tests/credentials_test.py src/bboard/transit/vehicles.py |
Enhanced error handling and utility functions |
|
src/bboard/util/credentials.py src/bboard/util/fs.py |
Updated tests to accommodate new credential handling |
|
tests/credentials_test.py tests/vehicles_test.py |
Added documentation for secrets management and development process |
|
docs/secrets.md docs/process.md |
Minor updates to project configuration and documentation |
|
ReadMe.md Makefile src/bboard/transit/vehicles.py |
Summary by Sourcery
Enhance API key management by introducing checks for key enablement and refactoring related functions. Update documentation with new guides on secrets management and contribution processes. Improve test coverage to include new utility functions and key enablement checks. Simplify the Makefile by removing redundant commands.
New Features:
Enhancements:
get_api_key
function to include a check for API key enablement, improving error handling and validation.file_exists
to check for file existence, streamlining file handling operations.Documentation:
secrets.md
document detailing the handling and management of secret API keys, including cloning instructions and token management.process.md
document outlining the contribution process, including steps for creating new features and submitting pull requests.Tests:
is_enabled
function, ensuring API keys are only used when enabled.file_exists
function to verify its behavior with existing and non-existing paths.Chores: