XanaduAI / strawberryfields

Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
https://strawberryfields.ai
Apache License 2.0
737 stars 187 forks source link

Run latest Black version (and pin doc/requirements.txt) #676

Closed thisac closed 2 years ago

thisac commented 2 years ago

Context: Black has been updated to v22.1.0 which changes the way the power operators should be styled:

a ** b should now be formatted as a**b.

Description of the Change: All spaces around the power operator are removed (along with at least one other minor change).

Benefits: The formatting check now passes with the latest version of Black.

Possible Drawbacks: None

Related GitHub Issues: None

codecov[bot] commented 2 years ago

Codecov Report

Merging #676 (e1ab64a) into master (5b0ea3a) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #676   +/-   ##
=======================================
  Coverage   98.33%   98.33%           
=======================================
  Files          75       75           
  Lines        9036     9036           
=======================================
  Hits         8886     8886           
  Misses        150      150           
Impacted Files Coverage Δ
strawberryfields/apps/points.py 100.00% <100.00%> (ø)
strawberryfields/apps/qchem/utils.py 100.00% <100.00%> (ø)
strawberryfields/apps/qchem/vibronic.py 100.00% <100.00%> (ø)
...trawberryfields/backends/bosonicbackend/backend.py 100.00% <100.00%> (ø)
...ryfields/backends/bosonicbackend/bosoniccircuit.py 100.00% <100.00%> (ø)
strawberryfields/backends/fockbackend/circuit.py 98.41% <100.00%> (ø)
strawberryfields/backends/fockbackend/ops.py 95.26% <100.00%> (ø)
...fields/backends/gaussianbackend/gaussiancircuit.py 99.23% <100.00%> (ø)
strawberryfields/backends/states.py 99.84% <100.00%> (ø)
strawberryfields/backends/tfbackend/circuit.py 95.60% <100.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5b0ea3a...e1ab64a. Read the comment docs.