civics-cdf-validator 1.56.dev0__py3-none-any.whl → 1.56.dev2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- civics_cdf_validator/rules.py +1 -13
- civics_cdf_validator/version.py +1 -1
- {civics_cdf_validator-1.56.dev0.dist-info → civics_cdf_validator-1.56.dev2.dist-info}/METADATA +1 -1
- {civics_cdf_validator-1.56.dev0.dist-info → civics_cdf_validator-1.56.dev2.dist-info}/RECORD +8 -8
- {civics_cdf_validator-1.56.dev0.dist-info → civics_cdf_validator-1.56.dev2.dist-info}/WHEEL +0 -0
- {civics_cdf_validator-1.56.dev0.dist-info → civics_cdf_validator-1.56.dev2.dist-info}/entry_points.txt +0 -0
- {civics_cdf_validator-1.56.dev0.dist-info → civics_cdf_validator-1.56.dev2.dist-info}/licenses/LICENSE-2.0.txt +0 -0
- {civics_cdf_validator-1.56.dev0.dist-info → civics_cdf_validator-1.56.dev2.dist-info}/top_level.txt +0 -0
civics_cdf_validator/rules.py
CHANGED
|
@@ -89,6 +89,7 @@ _EXECUTIVE_OFFICE_ROLES = frozenset([
|
|
|
89
89
|
"state executive",
|
|
90
90
|
"deputy state executive",
|
|
91
91
|
"deputy head of government",
|
|
92
|
+
"mayor",
|
|
92
93
|
])
|
|
93
94
|
|
|
94
95
|
_VALID_FEED_LONGEVITY_BY_FEED_TYPE = frozendict({
|
|
@@ -632,18 +633,6 @@ class GpUnitOcdId(base.BaseRule):
|
|
|
632
633
|
)
|
|
633
634
|
|
|
634
635
|
|
|
635
|
-
# TODO(b/337001513): Remove this once the new rule is rolled out everywhere and
|
|
636
|
-
# no feeds have this in their disabled rules anymore.
|
|
637
|
-
class ElectoralDistrictOcdId(base.BaseRule):
|
|
638
|
-
"""All GpUnits MUST have a valid OCD ID."""
|
|
639
|
-
|
|
640
|
-
def elements(self):
|
|
641
|
-
return ["ReportingUnit"]
|
|
642
|
-
|
|
643
|
-
def check(self, element):
|
|
644
|
-
pass
|
|
645
|
-
|
|
646
|
-
|
|
647
636
|
class DuplicatedGpUnitOcdId(base.BaseRule):
|
|
648
637
|
"""2 GpUnits should not have same OCD ID."""
|
|
649
638
|
|
|
@@ -4825,7 +4814,6 @@ ELECTION_RULES = COMMON_RULES + (
|
|
|
4825
4814
|
ElectionStartDates,
|
|
4826
4815
|
ElectionTypesAndCandidateContestTypesAreCompatible,
|
|
4827
4816
|
ElectionTypesAreCompatible,
|
|
4828
|
-
ElectoralDistrictOcdId,
|
|
4829
4817
|
FullTextMaxLength,
|
|
4830
4818
|
FullTextOrBallotText,
|
|
4831
4819
|
GpUnitsHaveSingleRoot,
|
civics_cdf_validator/version.py
CHANGED
{civics_cdf_validator-1.56.dev0.dist-info → civics_cdf_validator-1.56.dev2.dist-info}/RECORD
RENAMED
|
@@ -3,13 +3,13 @@ civics_cdf_validator/base.py,sha256=5zntjAdAA-bdwYOOStFgUle9LGX_ccelS--thMhUG9A,
|
|
|
3
3
|
civics_cdf_validator/gpunit_rules.py,sha256=Cg-qlOeVKTCQ5qUKYSxbVrrh3tdLt1X5Eg-7uyyR_SY,9487
|
|
4
4
|
civics_cdf_validator/loggers.py,sha256=ZfWFd9yskcd2-qb83EPz7eqa1iGO8BRFMtDZeE1hofA,6921
|
|
5
5
|
civics_cdf_validator/office_utils.py,sha256=aFxcFQZF2oBn0gPXt_kv1LxHGvwzABScT8X5yaYtVLw,2705
|
|
6
|
-
civics_cdf_validator/rules.py,sha256=
|
|
6
|
+
civics_cdf_validator/rules.py,sha256=ujrA2j1Iy9KnXecsdMVW_5Sx6OzJyANALkjlsMeshws,163931
|
|
7
7
|
civics_cdf_validator/stats.py,sha256=YNqv3Khkt_hJxCIunFBRSl23oXqu5gNjCmWMHFbAcSU,3819
|
|
8
8
|
civics_cdf_validator/validator.py,sha256=2nwlFfQ9AmpTaO5n5ekaO845Rm0JPjNF-Il6FJW_50k,12678
|
|
9
|
-
civics_cdf_validator/version.py,sha256=
|
|
10
|
-
civics_cdf_validator-1.56.
|
|
11
|
-
civics_cdf_validator-1.56.
|
|
12
|
-
civics_cdf_validator-1.56.
|
|
13
|
-
civics_cdf_validator-1.56.
|
|
14
|
-
civics_cdf_validator-1.56.
|
|
15
|
-
civics_cdf_validator-1.56.
|
|
9
|
+
civics_cdf_validator/version.py,sha256=Hn0YCjulJVsEgbNuLfeYPBEoMigpW17LEq8SG-VEpc4,188
|
|
10
|
+
civics_cdf_validator-1.56.dev2.dist-info/licenses/LICENSE-2.0.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
11
|
+
civics_cdf_validator-1.56.dev2.dist-info/METADATA,sha256=EYVlVch5BzRYfpmAJ-cqQD1uJyYzcsDOyGQ06LxyT38,1218
|
|
12
|
+
civics_cdf_validator-1.56.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
civics_cdf_validator-1.56.dev2.dist-info/entry_points.txt,sha256=QibgvtMOocwDi7fQ1emgMJ2lIlI41sW0__KIQdnVn90,77
|
|
14
|
+
civics_cdf_validator-1.56.dev2.dist-info/top_level.txt,sha256=PYT5Eclxbop5o6DJIcgs4IeU6Ds5jqyftjoFbgkkJYo,21
|
|
15
|
+
civics_cdf_validator-1.56.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{civics_cdf_validator-1.56.dev0.dist-info → civics_cdf_validator-1.56.dev2.dist-info}/top_level.txt
RENAMED
|
File without changes
|