civics-cdf-validator 1.47.dev1__tar.gz → 1.47.dev2__tar.gz

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.
Files changed (22) hide show
  1. {civics_cdf_validator-1.47.dev1/civics_cdf_validator.egg-info → civics_cdf_validator-1.47.dev2}/PKG-INFO +1 -1
  2. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2/civics_cdf_validator.egg-info}/PKG-INFO +1 -1
  3. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/rules.py +9 -7
  4. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/version.py +1 -1
  5. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/CONTRIBUTING.md +0 -0
  6. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/LICENSE-2.0.txt +0 -0
  7. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/MANIFEST.in +0 -0
  8. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/README.md +0 -0
  9. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/__init__.py +0 -0
  10. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/base.py +0 -0
  11. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/civics_cdf_validator.egg-info/SOURCES.txt +0 -0
  12. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/civics_cdf_validator.egg-info/dependency_links.txt +0 -0
  13. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/civics_cdf_validator.egg-info/entry_points.txt +0 -0
  14. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/civics_cdf_validator.egg-info/requires.txt +0 -0
  15. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/civics_cdf_validator.egg-info/top_level.txt +0 -0
  16. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/gpunit_rules.py +0 -0
  17. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/loggers.py +0 -0
  18. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/office_utils.py +0 -0
  19. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/setup.cfg +0 -0
  20. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/setup.py +0 -0
  21. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/stats.py +0 -0
  22. {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/validator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: civics_cdf_validator
3
- Version: 1.47.dev1
3
+ Version: 1.47.dev2
4
4
  Summary: Checks if an election feed follows best practices
5
5
  Home-page: https://github.com/google/civics_cdf_validator
6
6
  Author: Google Civics
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: civics_cdf_validator
3
- Version: 1.47.dev1
3
+ Version: 1.47.dev2
4
4
  Summary: Checks if an election feed follows best practices
5
5
  Home-page: https://github.com/google/civics_cdf_validator
6
6
  Author: Google Civics
@@ -3865,10 +3865,12 @@ class FeedInactiveDateSetForNonEvergreenFeed(base.BaseRule):
3865
3865
  class UnreferencedEntitiesBase(base.TreeRule):
3866
3866
  """All non-top-level entities in a feed should be referenced by at least one other entity.
3867
3867
 
3868
- This base class allows derived rules to specify the set of top-level and
3869
- warning-level entities since these differ by feed type. The rule is an info
3870
- for gpunits (as long as they have ComposingGpunitIds) since top-level gpunits
3871
- may exist solely to contain others.
3868
+ In the context of this rule, top-level means that an entity is not expected to
3869
+ be referenced by anything else in the feed. This base class allows derived
3870
+ rules to specify the set of top-level and warning-level entities since these
3871
+ differ by feed type. The rule is an info for gpunits (as long as they have
3872
+ ComposingGpunitIds) since top-level gpunits may exist solely to contain
3873
+ others.
3872
3874
  """
3873
3875
 
3874
3876
  def __init__(
@@ -3966,17 +3968,17 @@ class UnreferencedEntitiesElectionDates(UnreferencedEntitiesBase):
3966
3968
 
3967
3969
 
3968
3970
  class UnreferencedEntitiesOfficeholders(UnreferencedEntitiesBase):
3969
- """CDF offices are top-level in officeholders feeds.
3971
+ """CDF offices and party leadership entities are top-level in officeholders feeds.
3970
3972
 
3971
3973
  This rule is a warning for CDF parties since we ask for all parties for some
3972
- LatAm feeds due to ads enforcement requirements.
3974
+ LatAm feeds.
3973
3975
  """
3974
3976
 
3975
3977
  def __init__(self, election_tree, schema_tree, **kwargs):
3976
3978
  super(UnreferencedEntitiesOfficeholders, self).__init__(
3977
3979
  election_tree,
3978
3980
  schema_tree,
3979
- frozenset(["Office"]),
3981
+ frozenset(["Office", "Leadership"]),
3980
3982
  frozenset(["Party"]),
3981
3983
  **kwargs,
3982
3984
  )
@@ -5,4 +5,4 @@ No dependencies should be added to this module.
5
5
  See https://packaging.python.org/guides/single-sourcing-package-version/
6
6
  """
7
7
 
8
- __version__ = '1.47.dev1'
8
+ __version__ = '1.47.dev2'