Skip to content

MAINT: update linting#551

Merged
agoose77 merged 5 commits intomasterfrom
agoose77/chore-update-linting
Oct 13, 2023
Merged

MAINT: update linting#551
agoose77 merged 5 commits intomasterfrom
agoose77/chore-update-linting

Conversation

@agoose77
Copy link
Copy Markdown
Collaborator

@agoose77 agoose77 commented Oct 13, 2023

This PR replaces flake8 with ruff, updates some linting defaults, and fixes mypy.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
myst_nb/core/config.py 79.23% <100.00%> (ø)
myst_nb/core/render.py 85.28% <100.00%> (ø)
myst_nb/docutils_.py 73.68% <100.00%> (ø)
myst_nb/sphinx_.py 89.78% <100.00%> (ø)
myst_nb/sphinx_ext.py 91.07% <100.00%> (ø)

📢 Thoughts on this report? Let us know!.

@agoose77 agoose77 requested a review from choldgraf October 13, 2023 11:04
@agoose77 agoose77 enabled auto-merge (squash) October 13, 2023 11:07
Copy link
Copy Markdown
Member

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

This LGTM - I'm not too familiar with ruff but if you think it has a clear benefit over flake8 then let's go for it

@agoose77 agoose77 merged commit d59ff0b into master Oct 13, 2023
@agoose77
Copy link
Copy Markdown
Collaborator Author

agoose77 commented Oct 13, 2023

We're using ruff in scikit-hep, and Scientific Python: https://learn.scientific-python.org/development/guides/style/

I endorse it for being a lot faster (it's written in Rust)!

@bsipocz bsipocz deleted the agoose77/chore-update-linting branch September 25, 2024 01:31
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