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

MAINT: Enable more ruff rules #838

Merged
merged 3 commits into from
Jan 26, 2024
Merged

MAINT: Enable more ruff rules #838

merged 3 commits into from
Jan 26, 2024

Conversation

larsoner
Copy link
Member

Before merging …

  • Changelog has been updated (docs/source/changes.md)

Get our formatting rules up to date with MNE-Python. We should merge then add to .git-blame-revs-ignore (can do in #837 since that will probably take longer to get merged).

@@ -101,7 +100,7 @@
BIDS dataset.
"""

exclude_runs: Optional[Dict[str, List[str]]] = None
exclude_runs: Optional[dict[str, list[str]]] = None
Copy link
Member

Choose a reason for hiding this comment

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

I think this is only supported in Python 3.10+

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like 3.9+ I think which we have in our reqs?

https://docs.python.org/3.9/library/typing.html#type-aliases

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I found the PEP that says 3.9 https://peps.python.org/pep-0585/

Copy link
Member

Choose a reason for hiding this comment

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

Oh, great! 😊 all good then!

@larsoner larsoner merged commit cc93c66 into mne-tools:main Jan 26, 2024
50 checks passed
@larsoner larsoner deleted the ruff branch January 26, 2024 21:19
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