Skip to content

Commit fcca053

Browse files
committed
Merge branch 'develop' into bugfix-fiducial-selection-povm
2 parents 9b3862b + 86142fd commit fcca053

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

.flake8-critical

+14-11
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@
1616
# This list may be expanded in the future
1717
select=E9,F63,F7,F82
1818

19-
exclude=
19+
per-file-ignores=
2020
# Known issues with rb tests. Currently skipped, but technically have F821 errors
21-
test/unit/extras/rb/test_analysis.py
22-
test/unit/extras/rb/test_group.py
23-
test/unit/extras/rb/test_sample.py
24-
test/unit/extras/rb/test_theory.py
25-
test/unit/tools/test_internalgates.py
26-
test/test_packages/extras/test_rb.py
27-
# F821 error. Should nPossible be nLocal?
28-
test/test_packages/drivers/nqubitconstruction.py
29-
# F821 error. Likely results existed in a deleted cell
30-
scripts/profiling/gaugeopt/3Q_example.py
21+
test/unit/extras/rb/test_analysis.py:F821
22+
test/unit/extras/rb/test_group.py:F821
23+
test/unit/extras/rb/test_sample.py:F821
24+
test/unit/extras/rb/test_theory.py:F821
25+
test/unit/tools/test_internalgates.py:F821
26+
test/test_packages/extras/test_rb.py:F821
27+
# Should nPossible be nLocal?
28+
test/test_packages/drivers/nqubitconstruction.py:F821
29+
# Likely results existed in a deleted cell
30+
scripts/profiling/gaugeopt/3Q_example.py:F821
31+
# New with flake 7.2.0, should go back to these
32+
pygsti/forwardsims/termforwardsim_calc_generic.py:F824
33+
pygsti/baseobjs/basisconstructors.py:F824

setup.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
# Configure setuptools_scm to build a custom version (for more info,
1616
# see https://stackoverflow.com/a/78657279 and https://setuptools-scm.readthedocs.io/en/latest/extending)
1717
# If on a clean release, it uses no local scheme
18-
# Otherwise, it uses g{commit hash}.{branch}.[clean | d{date}] for the local scheme,
19-
# where the last entry is "clean" if everything is committed and otherwise the date of last commit
18+
# Otherwise, it uses g{commit hash}.{branch}.[CLEAN | d{date}] for the local scheme,
19+
# where the last entry is "CLEAN" if everything is committed and otherwise the date of last commit
2020
def custom_version(version):
2121
from setuptools_scm.version import get_local_node_and_date
2222

23-
b = version.branch if version.branch and version.branch != "master" else None
24-
2523
local_scheme = ""
2624
if version.dirty or version.distance:
2725
node_and_date = get_local_node_and_date(version)
@@ -30,9 +28,9 @@ def custom_version(version):
3028
node, date = node_and_date.split('.')
3129
else:
3230
node = node_and_date
33-
date = "clean"
31+
date = "CLEAN"
3432

35-
local_scheme = node + (f'.{b}.' if b else 'master') + date
33+
local_scheme = node + f'.{version.branch}.' + date
3634

3735
return local_scheme
3836

0 commit comments

Comments
 (0)