aboutsummaryrefslogtreecommitdiffstats
path: root/obfuscator
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2025-02-17 13:04:43 +0000
committerGitHub <noreply@github.com>2025-02-17 13:04:43 +0000
commite796c7bb6cc6de6368c2d195e233d0b11cf7e699 (patch)
treea99037c07a2b2bce642a0ce4648ac858ac0e325c /obfuscator
parent74843c48b7aa6f862b2965d590a711aa4cfc5f42 (diff)
downloadgdpr-obfuscator-e796c7bb6cc6de6368c2d195e233d0b11cf7e699.tar.gz
gdpr-obfuscator-e796c7bb6cc6de6368c2d195e233d0b11cf7e699.zip
style: format code with Autopep8, Black and Ruff Formatter
This commit fixes the style issues introduced in 74843c4 according to the output from Autopep8, Black and Ruff Formatter. Details: https://github.com/ajschofield/gdpr-obfuscator/pull/2
Diffstat (limited to 'obfuscator')
-rw-r--r--obfuscator/obfuscate.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/obfuscator/obfuscate.py b/obfuscator/obfuscate.py
index c9c116c..ac0bd21 100644
--- a/obfuscator/obfuscate.py
+++ b/obfuscator/obfuscate.py
@@ -3,13 +3,15 @@ from obfuscator.logger import get_logger
logger = get_logger("Obfuscator")
-def obfuscate(data: List[Dict[str, str]], pii_fields: List[str]) -> List[Dict[str,str]]:
+
+def obfuscate(
+ data: List[Dict[str, str]], pii_fields: List[str]
+) -> List[Dict[str, str]]:
if not data:
logger.info("No valid data was provided to obfuscate")
return []
-
+
return [
{k: ("***" if k in pii_fields else v) for k, v in record.items()}
for record in data
]
- \ No newline at end of file
git.ajschof.me — hosted by ajschofield — powered by cgit