Fix linting errors: add trailing newlines to all source files
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
"""TestDataGen - CLI tool for generating realistic test data."""
|
"""TestDataGen - CLI tool for generating realistic test data."""
|
||||||
|
|
||||||
__version__ = "0.1.0"
|
__version__ = "0.1.0"
|
||||||
|
|||||||
@@ -255,4 +255,4 @@ def from_sample(input, count, format, seed, table):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
"""Formatters package for TestDataGen."""
|
"""Formatters package for TestDataGen."""
|
||||||
|
|||||||
@@ -126,4 +126,4 @@ class CSVFormatter:
|
|||||||
else:
|
else:
|
||||||
result[new_key] = value if value is not None else ""
|
result[new_key] = value if value is not None else ""
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|||||||
@@ -54,4 +54,4 @@ class JSONFormatter:
|
|||||||
return obj.__dict__
|
return obj.__dict__
|
||||||
if hasattr(obj, 'isoformat'):
|
if hasattr(obj, 'isoformat'):
|
||||||
return obj.isoformat()
|
return obj.isoformat()
|
||||||
return str(obj)
|
return str(obj)
|
||||||
|
|||||||
@@ -115,4 +115,4 @@ class SQLFormatter:
|
|||||||
"Maximum length is 64 characters."
|
"Maximum length is 64 characters."
|
||||||
)
|
)
|
||||||
|
|
||||||
return table_name
|
return table_name
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
"""Generators package for TestDataGen."""
|
"""Generators package for TestDataGen."""
|
||||||
|
|||||||
@@ -425,4 +425,4 @@ class JSONSchemaGenerator:
|
|||||||
|
|
||||||
return final_result if final_result else ''.join(
|
return final_result if final_result else ''.join(
|
||||||
random.choices(string.ascii_letters, k=10)
|
random.choices(string.ascii_letters, k=10)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
"""Providers package for TestDataGen."""
|
"""Providers package for TestDataGen."""
|
||||||
|
|||||||
@@ -333,4 +333,4 @@ class TestDataProvider(BaseProvider):
|
|||||||
for prop_name, prop_schema in properties.items():
|
for prop_name, prop_schema in properties.items():
|
||||||
result[prop_name] = self.json_schema_type(prop_schema, faker_instance)
|
result[prop_name] = self.json_schema_type(prop_schema, faker_instance)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
"""Utils package for TestDataGen."""
|
"""Utils package for TestDataGen."""
|
||||||
|
|||||||
@@ -333,4 +333,4 @@ class TestDataProvider(BaseProvider):
|
|||||||
for prop_name, prop_schema in properties.items():
|
for prop_name, prop_schema in properties.items():
|
||||||
result[prop_name] = self.json_schema_type(prop_schema, faker_instance)
|
result[prop_name] = self.json_schema_type(prop_schema, faker_instance)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user