-
Notifications
You must be signed in to change notification settings - Fork 45
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
Lint: Utils module #350
base: develop
Are you sure you want to change the base?
Lint: Utils module #350
Conversation
hash_params, | ||
cache_dir, | ||
cache_content={"data": None, "metadata": None, "write_json": write_json}, | ||
clear_cache_file=clear_cache, |
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.
handle_caching reduced to only 5 inputs
https://pylint.readthedocs.io/en/stable/user_guide/configuration/all-options.html#max-args
handle_caching( | ||
hash_params, | ||
cache_dir, | ||
cache_content={"data": data, "metadata": None, "write_json": None}, | ||
clear_cache_file=clear_cache, | ||
) |
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.
handle_caching reduced to only 5 inputs
https://pylint.readthedocs.io/en/stable/user_guide/configuration/all-options.html#max-args
handle_caching( | ||
self.hash_params, | ||
self.cache_dir, | ||
cache_content={"data": self.data, "metadata": None, "write_json": None}, | ||
) |
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.
handle_caching reduced to only 5 inputs
https://pylint.readthedocs.io/en/stable/user_guide/configuration/all-options.html#max-args
handle_caching( | ||
self.hash_params, | ||
self.cache_dir, | ||
cache_content={"data": self.data, "metadata": None, "write_json": None}, | ||
) | ||
|
||
retrieved_data, _, _ = handle_caching( | ||
self.hash_params, | ||
self.cache_dir, | ||
cache_content={"data": None, "metadata": None, "write_json": None}, | ||
) | ||
|
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.
handle_caching reduced to only 5 inputs
https://pylint.readthedocs.io/en/stable/user_guide/configuration/all-options.html#max-args
handle_caching( | ||
self.hash_params, | ||
cache_dir, | ||
cache_content={"data": self.data, "metadata": None, "write_json": None}, | ||
) |
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.
handle_caching reduced to only 5 inputs
https://pylint.readthedocs.io/en/stable/user_guide/configuration/all-options.html#max-args
handle_caching( | ||
hash_params, | ||
cache_dir, | ||
cache_content={"data": data, "metadata": meta, "write_json": None}, | ||
) |
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.
handle_caching reduced to only 5 inputs
https://pylint.readthedocs.io/en/stable/user_guide/configuration/all-options.html#max-args
data, _, _ = handle_caching( | ||
hash_params, | ||
cache_dir, | ||
cache_content={"data": None, "metadata": None, "write_json": None}, | ||
clear_cache_file=clear_cache, | ||
) |
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.
handle_caching reduced to only 5 inputs
https://pylint.readthedocs.io/en/stable/user_guide/configuration/all-options.html#max-args
hash_params, | ||
cache_dir, | ||
cache_content={"data": None, "metadata": None, "write_json": None}, | ||
clear_cache_file=clear_cache, |
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.
handle_caching reduced to only 5 inputs
https://pylint.readthedocs.io/en/stable/user_guide/configuration/all-options.html#max-args
hash_params, | ||
cache_dir, | ||
cache_content={ | ||
"data": ndbc_data[buoy_id][year], | ||
"metadata": None, | ||
"write_json": None, | ||
}, |
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.
handle_caching reduced to only 5 inputs
https://pylint.readthedocs.io/en/stable/user_guide/configuration/all-options.html#max-args
- name: Run Pylint on mhkit/utils/ | ||
run: | | ||
pylint mhkit/utils/ |
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.
Add utils module to the linting enforcement
Modifies MHKiT to make the
utils
module PyLint compatible and enforces compatibility via GitHub Actions.Additionally this PR modifies the GitHub Actions testing environment to use the conda environment.yml file.