cda-tum / mqt-qecc

MQT QECC - Tools for Quantum Error Correcting Codes
MIT License
99 stars 13 forks source link

add ruff formatter #181

Closed lucasberent closed 10 months ago

lucasberent commented 10 months ago

Description

Adapts ruff formatter as in https://github.com/cda-tum/mqt-qcec/pull/324/files.

Checklist:

codecov[bot] commented 10 months ago

Codecov Report

Merging #181 (13a6798) into main (8570e5a) will decrease coverage by 0.1%. The diff coverage is 88.8%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181/graphs/tree.svg?width=650&height=150&src=pr&token=OAw9kgumkt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum)](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) ```diff @@ Coverage Diff @@ ## main #181 +/- ## ======================================= - Coverage 85.6% 85.6% -0.1% ======================================= Files 20 20 Lines 1367 1369 +2 Branches 190 190 ======================================= + Hits 1171 1172 +1 - Misses 196 197 +1 ``` | [Flag](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | Coverage Δ | | |---|---|---| | [cpp](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `79.5% <ø> (ø)` | | | [python](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `97.0% <88.8%> (-0.3%)` | :arrow_down: | | [Files](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | Coverage Δ | | |---|---|---| | [src/mqt/qecc/cc\_decoder/cli.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2NjX2RlY29kZXIvY2xpLnB5) | `89.4% <100.0%> (ø)` | | | [src/mqt/qecc/cc\_decoder/comparison/tn\_decoder.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2NjX2RlY29kZXIvY29tcGFyaXNvbi90bl9kZWNvZGVyLnB5) | `100.0% <100.0%> (ø)` | | | [src/mqt/qecc/cc\_decoder/hexagonal\_color\_code.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2NjX2RlY29kZXIvaGV4YWdvbmFsX2NvbG9yX2NvZGUucHk=) | `100.0% <100.0%> (ø)` | | | [...c/mqt/qecc/cc\_decoder/square\_octagon\_color\_code.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2NjX2RlY29kZXIvc3F1YXJlX29jdGFnb25fY29sb3JfY29kZS5weQ==) | `97.2% <100.0%> (ø)` | | | [src/mqt/qecc/ecc\_qiskit\_wrapper.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2VjY19xaXNraXRfd3JhcHBlci5weQ==) | `97.8% <100.0%> (ø)` | | | [src/mqt/qecc/cc\_decoder/color\_code.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/181?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2NjX2RlY29kZXIvY29sb3JfY29kZS5weQ==) | `92.6% <50.0%> (-2.2%)` | :arrow_down: |