cda-tum / mqt-core

MQT Core - The Backbone of the Munich Quantum Toolkit
http://mqt.readthedocs.io/projects/core
MIT License
52 stars 28 forks source link

🎨🚨 Improved formatting and linting config #625

Closed burgholzer closed 3 months ago

burgholzer commented 3 months ago

Description

This PR adds a couple further pre-commit checks and other utilities to ensure the validity of certain configs. This includes:

Checklist:

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.6%. Comparing base (86d93b5) to head (178669d). Report is 97 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625/graphs/tree.svg?width=650&height=150&src=pr&token=MqstsRKdqp&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-core/pull/625?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 #625 +/- ## ===================================== Coverage 91.6% 91.6% ===================================== Files 148 148 Lines 14736 14738 +2 Branches 2365 2365 ===================================== + Hits 13504 13507 +3 + Misses 1232 1231 -1 ``` | [Flag](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625/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-core/pull/625/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `91.4% <100.0%> (+<0.1%)` | :arrow_up: | | [python](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `99.7% <100.0%> (ø)` | | | [Files with missing lines](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | Coverage Δ | | |---|---|---| | [include/mqt-core/QuantumComputation.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625?src=pr&el=tree&filepath=include%2Fmqt-core%2FQuantumComputation.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9RdWFudHVtQ29tcHV0YXRpb24uaHBw) | `92.3% <100.0%> (ø)` | | | [include/mqt-core/dd/Package.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625?src=pr&el=tree&filepath=include%2Fmqt-core%2Fdd%2FPackage.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9kZC9QYWNrYWdlLmhwcA==) | `97.6% <100.0%> (+<0.1%)` | :arrow_up: | | [include/mqt-core/na/NADefinitions.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625?src=pr&el=tree&filepath=include%2Fmqt-core%2Fna%2FNADefinitions.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9uYS9OQURlZmluaXRpb25zLmhwcA==) | `98.0% <100.0%> (ø)` | | | [...mqt-core/operations/ClassicControlledOperation.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625?src=pr&el=tree&filepath=include%2Fmqt-core%2Foperations%2FClassicControlledOperation.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9vcGVyYXRpb25zL0NsYXNzaWNDb250cm9sbGVkT3BlcmF0aW9uLmhwcA==) | `96.6% <ø> (ø)` | | | [src/QuantumComputation.cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625?src=pr&el=tree&filepath=src%2FQuantumComputation.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL1F1YW50dW1Db21wdXRhdGlvbi5jcHA=) | `82.6% <100.0%> (ø)` | | | [src/mqt/core/plugins/qiskit.py](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625?src=pr&el=tree&filepath=src%2Fmqt%2Fcore%2Fplugins%2Fqiskit.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9jb3JlL3BsdWdpbnMvcWlza2l0LnB5) | `100.0% <100.0%> (ø)` | | | [src/operations/ClassicControlledOperation.cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625?src=pr&el=tree&filepath=src%2Foperations%2FClassicControlledOperation.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL29wZXJhdGlvbnMvQ2xhc3NpY0NvbnRyb2xsZWRPcGVyYXRpb24uY3Bw) | `88.5% <100.0%> (ø)` | | | [src/parsers/QASM3Parser.cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625?src=pr&el=tree&filepath=src%2Fparsers%2FQASM3Parser.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL3BhcnNlcnMvUUFTTTNQYXJzZXIuY3Bw) | `90.5% <100.0%> (ø)` | | | [src/zx/ZXDiagram.cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625?src=pr&el=tree&filepath=src%2Fzx%2FZXDiagram.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL3p4L1pYRGlhZ3JhbS5jcHA=) | `92.3% <100.0%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/cda-tum/mqt-core/pull/625/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum)