From 8fe9b3c5c7a056f438bc18a6f0c76c4fdc60e25e Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Mon, 12 Feb 2024 13:24:27 +0100 Subject: [PATCH] fixing linting --- tldtester/models.py | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/tldtester/models.py b/tldtester/models.py index 5ec1676..69dcb51 100644 --- a/tldtester/models.py +++ b/tldtester/models.py @@ -1,31 +1,32 @@ from django.db import models + class TLD(models.Model): """ Model for the TLDs validation """ - INET = (( 0 , "IPv4"), ( 1 , "IPv6"), (2, "IPv4 + IPv6"),) + INET = ((0, "IPv4"), (1, "IPv6"), (2, "IPv4 + IPv6"),) DNSSECALGOS = ( - ( 0 , "Delete DS"), - ( 1 , "RSA/MD5"), - ( 2 , "Diffie-Hellman"), - ( 3 , "DSA/SHA1"), - ( 5 , "RSA/SHA-1"), - ( 6 , "DSA-NSEC3-SHA1"), - ( 7 , "RSASHA1-NSEC3-SHA1"), - ( 8 , "RSA/SHA-256"), - ( 10 , "RSA/SHA-512"), - ( 12 , "GOST R 34.10-2001"), - ( 13 , "ECDSA Curve P-256 with SHA-256"), - ( 14, "ECDSA Curve P-384 with SHA-384"), - ( 15 , "Ed25519"), - ( 16 , "Ed448"), - ( 17 , "SM2 signing algorithm with SM3 hashing algorithm"), - ( 23 , "GOST R 34.10-2012"), - ( 252 , "Reserved for Indirect Keys"), - ( 253 , "private algorithm"), - ( 254 , "private algorithm OID"), - ( 300 , "Unknown"), + (0, "Delete DS"), + (1, "RSA/MD5"), + (2, "Diffie-Hellman"), + (3, "DSA/SHA1"), + (5, "RSA/SHA-1"), + (6, "DSA-NSEC3-SHA1"), + (7, "RSASHA1-NSEC3-SHA1"), + (8, "RSA/SHA-256"), + (10, "RSA/SHA-512"), + (12, "GOST R 34.10-2001"), + (13, "ECDSA Curve P-256 with SHA-256"), + (14, "ECDSA Curve P-384 with SHA-384"), + (15, "Ed25519"), + (16, "Ed448"), + (17, "SM2 signing algorithm with SM3 hashing algorithm"), + (23, "GOST R 34.10-2012"), + (252, "Reserved for Indirect Keys"), + (253, "private algorithm"), + (254, "private algorithm OID"), + (300, "Unknown"), ) tld = models.CharField(max_length=30)