From 341cb036fadc0bb08c670a90bdfc4968390ad858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Tue, 27 Jan 2026 10:48:01 +0100 Subject: [PATCH] Update templates --- .pre-commit-config.yaml | 8 +- pyproject.toml | 159 ++++++++++----------- templates/admin/custom_domain_search.html | 2 +- templates/admin/email_search.html | 33 ++--- templates/admin/mailbox_domain_search.html | 10 +- uv.lock | 8 +- 6 files changed, 107 insertions(+), 113 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f759bcc..f848abd9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,14 +7,8 @@ repos: hooks: - id: check-yaml - id: trailing-whitespace - - repo: https://github.com/trim21/dprint-pre-commit - rev: "d93f30aac23560a1999a1f4a0f290323fda0c1a4" - hooks: - - id: dprint - types: [file] - files: \.html$ - repo: https://github.com/djlint/djLint - rev: v1.36.4 + rev: v1.35.3 hooks: - id: djlint-jinja types: [file] diff --git a/pyproject.toml b/pyproject.toml index 0bb285c2..67a6022a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,89 +2,86 @@ name = "SimpleLogin" version = "0.1.0" description = "SimpleLogin partner API" -authors = [ {name="SimpleLogin", email="dev@simplelogin.io"}] +authors = [{ name = "SimpleLogin", email = "dev@simplelogin.io" }] license = "MIT" repository = "https://github.com/simple-login/app" keywords = ["email", "alias", "privacy", "oauth2", "openid"] -packages = [ - { include = "app/" }, - { include = "migrations/" }, -] +packages = [{ include = "app/" }, { include = "migrations/" }] include = ["templates/*", "templates/**/*", "local_data/*.txt"] requires-python = "~=3.12.0" dependencies = [ - "flask ~= 1.1.2", - "flask_login ~= 0.5.0", - "wtforms ~= 2.3.3", - "unidecode ~= 1.1.1", - "gunicorn ~= 20.0.4", - "bcrypt ~= 3.2.0", - "python-dotenv ~= 0.14.0", - "ipython ~= 7.31.1", - "sqlalchemy_utils ~= 0.36.8", - "psycopg2-binary ~= 2.9.10", - "sentry_sdk ~= 2.20.0", - "blinker ~= 1.9.0", - "arrow ~= 0.16.0", - "Flask-WTF ~= 0.14.3", - "boto3 ~= 1.35.37", - "Flask-Migrate ~= 2.5.3", - "flask_admin ~= 1.5.6", - "flask-cors ~= 3.0.9", - "watchtower ~= 0.8.0", - "sqlalchemy-utils == 0.36.8", - "jwcrypto ~= 0.8", - "yacron~=0.19.0", - "flask-debugtoolbar ~= 0.11.0", - "requests_oauthlib ~= 1.3.0", - "pyopenssl ~= 19.1.0", - "aiosmtpd ~= 1.2", - "dnspython ~= 2.7.0", - "coloredlogs ~= 14.0", - "pycryptodome ~= 3.9.8", - "phpserialize ~= 1.3", - "dkimpy == 1.0.5", - "pyotp ~= 2.4.0", - "flask_profiler ~= 1.8.1", - "facebook-sdk ~= 3.1.0", - "google-api-python-client ~= 1.12.3", - "google-auth-httplib2 ~= 0.0.4", - "python-gnupg ~= 0.4.6", - "webauthn ~= 0.4.7", + "flask ~= 1.1.2", + "flask_login ~= 0.5.0", + "wtforms ~= 2.3.3", + "unidecode ~= 1.1.1", + "gunicorn ~= 20.0.4", + "bcrypt ~= 3.2.0", + "python-dotenv ~= 0.14.0", + "ipython ~= 7.31.1", + "sqlalchemy_utils ~= 0.36.8", + "psycopg2-binary ~= 2.9.10", + "sentry_sdk ~= 2.20.0", + "blinker ~= 1.9.0", + "arrow ~= 0.16.0", + "Flask-WTF ~= 0.14.3", + "boto3 ~= 1.35.37", + "Flask-Migrate ~= 2.5.3", + "flask_admin ~= 1.5.6", + "flask-cors ~= 3.0.9", + "watchtower ~= 0.8.0", + "sqlalchemy-utils == 0.36.8", + "jwcrypto ~= 0.8", + "yacron~=0.19.0", + "flask-debugtoolbar ~= 0.11.0", + "requests_oauthlib ~= 1.3.0", + "pyopenssl ~= 19.1.0", + "aiosmtpd ~= 1.2", + "dnspython ~= 2.7.0", + "coloredlogs ~= 14.0", + "pycryptodome ~= 3.9.8", + "phpserialize ~= 1.3", + "dkimpy == 1.0.5", + "pyotp ~= 2.4.0", + "flask_profiler ~= 1.8.1", + "facebook-sdk ~= 3.1.0", + "google-api-python-client ~= 1.12.3", + "google-auth-httplib2 ~= 0.0.4", + "python-gnupg ~= 0.4.6", + "webauthn ~= 0.4.7", - # Git dependency until pyspf creates a new release - #"pyspf @ git+https://github.com/sdgathman/pyspf.git@665a6df079485a9824be0829e7d71088453db7f6", - "pyspf ~= 2.0.14", + # Git dependency until pyspf creates a new release + #"pyspf @ git+https://github.com/sdgathman/pyspf.git@665a6df079485a9824be0829e7d71088453db7f6", + "pyspf ~= 2.0.14", - "Flask-Limiter == 1.5", - "memory_profiler ~= 0.57.0", - "gevent ~= 24.11.1", - "email-validator ~= 2.2.0", - "PGPy == 0.5.4", - "coinbase-commerce ~= 1.0.1", - "requests ~= 2.25.1", - "newrelic ~= 8.8.0", - "flanker ~= 0.9.11", - "pyre2 ~= 0.3.6", - "tldextract ~= 3.1.2", - "flask-debugtoolbar-sqlalchemy ~= 0.2.0", - "twilio ~= 7.3.2", - "Deprecated ~= 1.2.13", - "MarkupSafe~=1.1.1", - "cryptography ~= 37.0.1", - "SQLAlchemy ~= 1.3.24", - "redis==5.2.1", - "newrelic-telemetry-sdk ~= 0.5.0", - "aiospamc == 0.10", - "itsdangerous ~= 1.1.0", - "werkzeug ~= 1.0.1", - "alembic ~= 1.4.3", - "limits ~= 4.0.1", - "strictyaml ~= 1.7.3", + "Flask-Limiter == 1.5", + "memory_profiler ~= 0.57.0", + "gevent ~= 24.11.1", + "email-validator ~= 2.2.0", + "PGPy == 0.5.4", + "coinbase-commerce ~= 1.0.1", + "requests ~= 2.25.1", + "newrelic ~= 8.8.0", + "flanker ~= 0.9.11", + "pyre2 ~= 0.3.6", + "tldextract ~= 3.1.2", + "flask-debugtoolbar-sqlalchemy ~= 0.2.0", + "twilio ~= 7.3.2", + "Deprecated ~= 1.2.13", + "MarkupSafe~=1.1.1", + "cryptography ~= 37.0.1", + "SQLAlchemy ~= 1.3.24", + "redis==5.2.1", + "newrelic-telemetry-sdk ~= 0.5.0", + "aiospamc == 0.10", + "itsdangerous ~= 1.1.0", + "werkzeug ~= 1.0.1", + "alembic ~= 1.4.3", + "limits ~= 4.0.1", + "strictyaml ~= 1.7.3", - "sl-pgp" + "sl-pgp", ] [tool.black] @@ -134,17 +131,19 @@ ignore = "H006,H013,H016,H017,H019,H021,H025,H030,H031,T003,J004,J018,T001" [tool.uv] # Declare sl-pgp-rs dependency link so uv can find it -find-links = ["https://github.com/simple-login/sl-pgp-rs/releases/download/0.1.1/index.html"] +find-links = [ + "https://github.com/simple-login/sl-pgp-rs/releases/download/0.1.1/index.html", +] [dependency-groups] dev = [ - "pytest ~= 7.0.0", - "pytest-cov ~= 3.0.0", - "pre-commit ~= 4.1.0", - "black ~= 22.1.0", - "djlint==1.34.1", - "pylint ~= 2.14.4", - "ruff ~= 0.1.5", + "pytest ~= 7.0.0", + "pytest-cov ~= 3.0.0", + "pre-commit ~= 4.1.0", + "black ~= 22.1.0", + "djlint==1.35.3", + "pylint ~= 2.14.4", + "ruff ~= 0.1.5", ] [build-system] diff --git a/templates/admin/custom_domain_search.html b/templates/admin/custom_domain_search.html index 5b6cf2d8..15fc7d6f 100644 --- a/templates/admin/custom_domain_search.html +++ b/templates/admin/custom_domain_search.html @@ -890,7 +890,7 @@ -
- - - - - -