unitaryfund / metriq-gym

Standard benchmark script implementations for https://metriq.info
Apache License 2.0
2 stars 0 forks source link

Ruff linter/formatter first setup #22

Closed cosenal closed 3 weeks ago

cosenal commented 3 weeks ago

Setting up Ruff (the same tool used in Mitiq), so we don't have to care about linting and formatting (new lines, unused vars, etc..) in each PR, and we can focus on the important things.

Notes:

willzeng commented 3 weeks ago

Great add!

Will Zeng President Unitary Fund - because evolution is unitary

Unitary Fund https://unitary.fund/ | Linkedin https://www.linkedin.com/company/unitary-fund/ | X https://x.com/home?lang=en | Discord https://discord.com/invite/unitary-fund-764231928676089909

On Mon, Nov 11 2024 at 12:26 PM, Vincent Russo @.***> wrote:

@.**** approved this pull request.

One minor request for longer line length for formatter but LGTM!

In pyproject.toml https://github.com/unitaryfund/metriq-gym/pull/22#discussion_r1836994101 :

@@ -21,6 +21,13 @@ metriq-client = { git = "https://github.com/unitaryfund/metriq-client.git", bran matplotlib = "^3.9.2" qiskit-experiments = "^0.7.0"

+[tool.poetry.group.dev.dependencies] +ruff = "^0.7.3" +pre-commit = "^4.0.1" + +[tool.ruff]

Can we add:

line-length = 120

80 is annoyingly conservative

— Reply to this email directly, view it on GitHub https://github.com/unitaryfund/metriq-gym/pull/22#pullrequestreview-2427818773, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHZDAQYWPUGYMDV2XLVP4T2ADSEHAVCNFSM6AAAAABRSH5JV6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIMRXHAYTQNZXGM . You are receiving this because you were mentioned.Message ID: @.***>