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

Fix linting errors #296

Merged
merged 9 commits into from
Nov 15, 2023
Merged

Fix linting errors #296

merged 9 commits into from
Nov 15, 2023

Conversation

ZedThree
Copy link
Member

Add a workflow using ruff (flake8 but fast)


import xarray as xr
import xarray.testing as xrt
from xarray.core.utils import dict_equiv

from xbout.tests.test_load import bout_xyt_example_files, create_bout_ds
Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, looks like this import was flagged as unused because it only appears as a fixture. Moving it to conftest.py is probably the best way to fix this

Copy link
Contributor

@dschwoerer dschwoerer left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup 👍

@@ -1,10 +1,8 @@
import numpy as np
import random

import pytest

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

@ZedThree ZedThree merged commit 4670160 into master Nov 15, 2023
12 checks passed
@ZedThree ZedThree deleted the ruff-fixes branch November 15, 2023 09:33
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.

2 participants