Tests: Flake8, Rakefile

This commit is contained in:
2024-10-19 10:56:58 -05:00
parent 9ee21faba6
commit 1b8619f95e
6 changed files with 84 additions and 12 deletions

View File

@@ -1,7 +1,5 @@
#!/usr/bin/env python3
import qrcode
import tempfile
import os
class QRCodeGenerator:
@@ -11,7 +9,7 @@ class QRCodeGenerator:
self.url = url
def generate_qr(self):
"""Genera un código QR a partir de la URL y lo guarda en un archivo temporal."""
"""Genera un código QR a partir de la URL"""
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,