Skip to content

Commit 2139bf7

Browse files
committed
feat(InputVal): added check_stats param to custom_validation fcn
1 parent 382da65 commit 2139bf7

File tree

11 files changed

+13
-16
lines changed

11 files changed

+13
-16
lines changed

data/src/validation/city_owned_properties.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,11 @@
4747

4848

4949
class CityOwnedPropertiesInputValidator(BaseValidator):
50-
"""
51-
Validator for the city-owned properties dataset input.
52-
schema and _custom_validation() are used by validate() in the parent class.
53-
"""
50+
"""Validator for city owned properties service input."""
5451

5552
schema = CityOwnedPropertiesInputSchema
5653

57-
def _custom_validation(self, gdf: gpd.GeoDataFrame):
54+
def _custom_validation(self, gdf: gpd.GeoDataFrame, check_stats: bool = True):
5855
pass
5956

6057

data/src/validation/contig_neighbors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ContigNeighborsInputValidator(BaseValidator):
99

1010
schema = None
1111

12-
def _custom_validation(self, gdf: gpd.GeoDataFrame):
12+
def _custom_validation(self, gdf: gpd.GeoDataFrame, check_stats: bool = True):
1313
pass
1414

1515

data/src/validation/delinquencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DelinquenciesInputValidator(BaseValidator):
1111

1212
schema = None
1313

14-
def _custom_validation(self, gdf: gpd.GeoDataFrame):
14+
def _custom_validation(self, gdf: gpd.GeoDataFrame, check_stats: bool = True):
1515
pass
1616

1717

data/src/validation/dev_probability.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88

99
class DevProbabilityInputValidator(BaseValidator):
10-
"""Validator for dev probability service input from census block groups."""
10+
"""Validator for development probability service input."""
1111

1212
schema = None
1313

14-
def _custom_validation(self, gdf: gpd.GeoDataFrame):
14+
def _custom_validation(self, gdf: gpd.GeoDataFrame, check_stats: bool = True):
1515
pass
1616

1717

data/src/validation/dor_parcels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class DorParcelsInputValidator(BaseValidator):
88

99
schema = None
1010

11-
def _custom_validation(self, gdf: gpd.GeoDataFrame):
11+
def _custom_validation(self, gdf: gpd.GeoDataFrame, check_stats: bool = True):
1212
pass
1313

1414

data/src/validation/nbhoods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class NeighborhoodsInputValidator(BaseValidator):
2727

2828
schema = None # No schema validation for input
2929

30-
def _custom_validation(self, gdf: gpd.GeoDataFrame):
30+
def _custom_validation(self, gdf: gpd.GeoDataFrame, check_stats: bool = True):
3131
pass
3232

3333

data/src/validation/phs_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class PHSPropertiesInputValidator(BaseValidator):
4444

4545
schema = PHSPropertiesInputSchema
4646

47-
def _custom_validation(self, gdf: gpd.GeoDataFrame):
47+
def _custom_validation(self, gdf: gpd.GeoDataFrame, check_stats: bool = True):
4848
pass
4949

5050

data/src/validation/ppr_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PPRPropertiesInputValidator(BaseValidator):
2727

2828
schema = PPRPropertiesInputSchema
2929

30-
def _custom_validation(self, gdf: gpd.GeoDataFrame):
30+
def _custom_validation(self, gdf: gpd.GeoDataFrame, check_stats: bool = True):
3131
pass
3232

3333

data/src/validation/priority_level.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class PriorityLevelInputValidator(BaseValidator):
1010

1111
schema = None
1212

13-
def _custom_validation(self, gdf: gpd.GeoDataFrame):
13+
def _custom_validation(self, gdf: gpd.GeoDataFrame, check_stats: bool = True):
1414
pass
1515

1616

data/src/validation/pwd_parcels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class PWDParcelsInputValidator(BaseValidator):
5050

5151
schema = PWDParcelsInputSchema
5252

53-
def _custom_validation(self, gdf: gpd.GeoDataFrame):
53+
def _custom_validation(self, gdf: gpd.GeoDataFrame, check_stats: bool = True):
5454
pass
5555

5656

0 commit comments

Comments
 (0)