TeamGraphix / graphix

measurement-based quantum computing (MBQC) compiler and simulator
https://graphix.readthedocs.io
Apache License 2.0
55 stars 20 forks source link

Setup Ruff #141

Open EarlMilktea opened 1 month ago

EarlMilktea commented 1 month ago

Description of the change:

Setup Ruff linter CI.

Related issue:

Resolves #140

shinich1 commented 1 month ago

@EarlMilkTea let us merge this after #135

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 77.63158% with 17 lines in your changes are missing coverage. Please review.

Project coverage is 71.96%. Comparing base (2a032e4) to head (944f32f).

Files Patch % Lines
graphix/pattern.py 47.05% 9 Missing :warning:
graphix/device_interface.py 0.00% 3 Missing :warning:
graphix/visualization.py 0.00% 2 Missing :warning:
graphix/extraction.py 66.66% 1 Missing :warning:
graphix/graphsim/graphstate.py 0.00% 1 Missing :warning:
graphix/graphsim/nxgraphstate.py 75.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #141 +/- ## ========================================== + Coverage 71.91% 71.96% +0.04% ========================================== Files 30 30 Lines 5359 5350 -9 ========================================== - Hits 3854 3850 -4 + Misses 1505 1500 -5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

EarlMilktea commented 1 month ago

~@EarlMilktea let us merge this after #135~

@thierry-martinez @shinich1 is not planning to merge this PR immediately. Could you wait a while until everything is ready?

EarlMilktea commented 1 week ago

Ruff config. is partly merged by #135 .

@shinich1

How about migrating from black + isort to Ruff format?

Ruff provides almost the same features and is faster. Additionally we can simplify pyproject.toml .

MEMO: Not planning to merge this PR. I'm planning to abandon it.