-
Notifications
You must be signed in to change notification settings - Fork 0
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
Develop #27
Conversation
Remove .pylintrc dependency
Update file exclusion pattern for egg-info folders.
Clarify error message for existing path in create_directory method of the FileRepository class.
Correct error message formatting in FileRepository.
Tunning pylint workflow, first try.
Tunning pylint workflow, second try.
Scoping to version 3.12 only before testing bacward compatibitlity.
Update Python version and pylint configuration.
Update Python version and pylint configuration.
Support/pylint workflow
Update Develop chore commits
Update settings for GitHub Copilot and file exclusions.
Correct error message formatting in FileRepository, remove unnecessary string concatenation.
Update test functions to return lists of downloaded files.
Update from Develop
Add new class GOESProductLocatorABINSO. Replace GOESProductLocatorABI with GOESProductLocatorABINSO in locators GOESProductLocatorABIPM and GOESProductLocatorABIDP as their base class. Remove duplicated code.
Rename product name constants for clarity.
Remove duplicate code in the AWS and HTTP data sources.
Temporarily disable invalid-name and fixme checks.
Add support for Python 3.8 in pylint workflow.
Remove Python 3.8 from the CI matrix.
Add support for Python 3.13 in pylint workflow. Remove Python 3.13 to the CI matrix.
Update pylint command to use double quotes for consistency.
Rename Pylint workflow to Bandit and update analysis command.
Support/simplify datasource
The package directory is renamed from `GOES_DL` to `goesdl` to be compliant with the Python package naming convention.
…ect package name change to goesdl
…ect package name change to goesdl
…ge name change to goesdl
… no longer needed
Release/v0.1 rc4
Reviewer's Guide by SourceryThis pull request refactors the GOES-DL library to improve its modularity and flexibility. It introduces a new local datasource, removes the repository from the datasource, and modifies the downloader to use a repository object. Additionally, it updates the test suite to reflect these changes. Class diagram showing the updated datasource hierarchyclassDiagram
class Datasource {
<<abstract>>
+base_url: str
+download_file(file_path: str) bytes
+list_files(dir_path: str) list[str]
}
class DatasourceBase {
+cache: DatasourceCache
}
class DatasourceAWS {
+bucket_name: str
+s3_client: S3Client
+download_file(file_path: str) bytes
+list_files(dir_path: str) list[str]
}
class DatasourceHTTP {
+download_file(file_path: str) bytes
+list_files(dir_path: str) list[str]
}
class DatasourceLocal {
+source: FileRepository
+download_file(file_path: str) bytes
+list_files(dir_path: str) list[str]
}
Datasource <|-- DatasourceBase
DatasourceBase <|-- DatasourceAWS
DatasourceBase <|-- DatasourceHTTP
DatasourceBase <|-- DatasourceLocal
note for DatasourceBase "Base class with cache support"
note for DatasourceLocal "New class for local files"
Class diagram showing the new Downloader structureclassDiagram
class DownloaderBase {
+datasource: Datasource
+locator: ProductLocator
+repository: FileRepository
+download_files(start: str, end: str) list[str]
+list_files(start: str, end: str) list[str]
+get_files(file_paths: list[str]) list[str]
}
class Downloader {
+__init__(datasource, locator, repository, date_format, time_tolerance, show_progress)
}
DownloaderBase <|-- Downloader
note for Downloader "Repository moved from datasource to downloader"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Here's the code health analysis summary for commits Analysis Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @wvenialbo - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 6 issues found
- 🟢 Security: all looks good
- 🟡 Testing: 4 issues found
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Merge pull request #27 from wvenialbo/develop
Summary by Sourcery
Refactor the library and add support for local datasources.
New Features:
Tests: