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

Add linting to CI #284

Merged
merged 19 commits into from
Jan 8, 2024
Merged

Add linting to CI #284

merged 19 commits into from
Jan 8, 2024

Conversation

ian-noaa
Copy link
Contributor

@ian-noaa ian-noaa commented Dec 21, 2023

This change:

  • Runs our linter in CI
  • Fixes linting issues in the codebase
  • Removes any unneeded pylint exception strings

@ian-noaa ian-noaa self-assigned this Dec 21, 2023
In some cases, I had to explicitly cast the pathlib.glob() expressions
to lists so that len() would work on them. Pathlib.glob returns a
generator expression instead of a list like glob.glob().
Mostly, removing some extra try/except statements. Pytest will handle
these for us and automatically fail the test if it throws an exception
The try/except in connect_cb() was always being triggered as
cb_connection was never defined.
@ian-noaa ian-noaa marked this pull request as ready for review December 29, 2023 21:22
@ian-noaa ian-noaa linked an issue Jan 2, 2024 that may be closed by this pull request
4 tasks
Copy link
Contributor

@randytpierce randytpierce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all those carefully added pylint disable statements , oh sigh. ;)

@ian-noaa
Copy link
Contributor Author

ian-noaa commented Jan 8, 2024

Hopefully this means we won't have to add any more of those disable statements!

@ian-noaa ian-noaa merged commit 3893f72 into main Jan 8, 2024
6 checks passed
@ian-noaa ian-noaa deleted the add-linting-to-ci branch January 8, 2024 16:35
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.

Set Up GitHub Actions
2 participants