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

Use ruff as a linter #57

Merged
merged 7 commits into from
Nov 7, 2023
Merged

Use ruff as a linter #57

merged 7 commits into from
Nov 7, 2023

Conversation

noemifrisina
Copy link
Contributor

@noemifrisina noemifrisina commented Nov 1, 2023

Closes #53 .
Replace isort/flake8 in pre-commits with Ruff.

Also pin builds to 3.11 as p4p doesn't build in 3.12 (stop docs from failing)

Copy link

codecov bot commented Nov 1, 2023

Codecov Report

Merging #57 (086de2f) into main (c7d8613) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #57   +/-   ##
=======================================
  Coverage   46.88%   46.88%           
=======================================
  Files          19       19           
  Lines        3242     3242           
=======================================
  Hits         1520     1520           
  Misses       1722     1722           
Files Coverage Δ
src/mx_bluesky/I24/serial/dcid.py 28.08% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

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

Great, thank you. Minor comment. Could you add DiamondLightSource/dodal@b980f9b in to this PR too so that the CI is working?


# A dictionary of graphviz graph attributes for inheritance diagrams.
inheritance_graph_attrs = dict(rankdir="TB")
inheritance_graph_attrs = {"rankdir": "TB"}

# Common links that should be available on every page
rst_epilog = """
Copy link
Contributor

Choose a reason for hiding this comment

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

Could: The links to flake8 and isort links here aren't needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@d-perl d-perl dismissed DominicOram’s stale review November 7, 2023 10:15

changes were addressed

@noemifrisina noemifrisina merged commit 2936edd into main Nov 7, 2023
15 checks passed
@noemifrisina noemifrisina deleted the 53_use_ruff branch November 7, 2023 10:16
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.

Use ruff
3 participants