2019-12-22 12:57:16 +01:00
|
|
|
[tool.black]
|
2022-12-14 11:50:36 +01:00
|
|
|
target-version = ['py310']
|
2019-12-22 12:57:16 +01:00
|
|
|
exclude = '''
|
|
|
|
(
|
|
|
|
/(
|
|
|
|
\.eggs # exclude a few common directories in the
|
|
|
|
| \.git # root of the project
|
|
|
|
| \.hg
|
|
|
|
| \.mypy_cache
|
|
|
|
| \.tox
|
|
|
|
| \.venv
|
|
|
|
| _build
|
|
|
|
| buck-out
|
|
|
|
| build
|
|
|
|
| dist
|
|
|
|
| migrations # migrations/ is generated by alembic
|
2024-05-23 10:27:08 +02:00
|
|
|
| app/events/generated
|
2019-12-22 12:57:16 +01:00
|
|
|
)/
|
|
|
|
)
|
|
|
|
'''
|
2020-10-01 12:13:28 +02:00
|
|
|
|
2023-11-21 16:42:18 +01:00
|
|
|
[tool.ruff]
|
|
|
|
ignore-init-module-imports = true
|
2024-05-23 10:27:08 +02:00
|
|
|
exclude = [".venv", "migrations", "app/events/generated"]
|
2023-11-21 16:42:18 +01:00
|
|
|
|
2022-06-29 11:28:26 +02:00
|
|
|
[tool.djlint]
|
|
|
|
indent = 2
|
|
|
|
profile = "jinja"
|
2022-07-11 12:06:15 +02:00
|
|
|
blank_line_after_tag = "if,for,include,load,extends,block,endcall"
|
2022-06-29 11:28:26 +02:00
|
|
|
|
|
|
|
# H006: Images should have a height attribute
|
|
|
|
# H013: Images should have an alt attribute
|
|
|
|
# H016: Missing title tag in html. | False positive on template
|
|
|
|
# H017: Tag should be self closing
|
|
|
|
# H019: Replace 'javascript:abc()' with on_ event and real url. (javascript:history.back())
|
|
|
|
# H021: Avoid inline styles
|
|
|
|
# H025: Tag seems to be orphan (it messes up with indicators on strings such as <email@example.com>)
|
|
|
|
# H030: Consider adding a meta description | False positive on template
|
|
|
|
# H031: Consider adding meta keywords
|
|
|
|
# T003: Endblock should have a name
|
|
|
|
# J004: (Jinja) Static urls should follow {{ url_for('static'..) }} pattern
|
|
|
|
# J018: (Jinja) Internal links should use the {{ url_for() ... }} pattern. | Some false positives
|
|
|
|
# T001: Variables should be wrapped in a single whitespace. | Messes up with comments
|
|
|
|
ignore = "H006,H013,H016,H017,H019,H021,H025,H030,H031,T003,J004,J018,T001"
|
|
|
|
|
2020-10-01 12:13:28 +02:00
|
|
|
[tool.poetry]
|
|
|
|
name = "SimpleLogin"
|
|
|
|
version = "0.1.0"
|
|
|
|
description = "open-source email alias solution"
|
|
|
|
authors = ["SimpleLogin <dev@simplelogin.io>"]
|
|
|
|
license = "MIT"
|
|
|
|
repository = "https://github.com/simple-login/app"
|
|
|
|
keywords = ["email", "alias", "privacy", "oauth2", "openid"]
|
2022-04-22 08:26:37 +02:00
|
|
|
packages = [
|
2022-05-19 07:47:35 +02:00
|
|
|
{ include = "app/" },
|
|
|
|
{ include = "migrations/" },
|
2022-04-22 08:26:37 +02:00
|
|
|
]
|
2022-10-24 17:55:59 +02:00
|
|
|
include = ["templates/*", "templates/**/*", "local_data/*.txt"]
|
2020-10-01 12:13:28 +02:00
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-09-29 17:26:40 +02:00
|
|
|
python = "^3.10"
|
2020-10-01 12:13:28 +02:00
|
|
|
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"
|
2022-02-03 11:30:44 +01:00
|
|
|
ipython = "^7.31.1"
|
2020-10-01 12:13:28 +02:00
|
|
|
sqlalchemy_utils = "^0.36.8"
|
2022-04-19 14:45:30 +02:00
|
|
|
psycopg2-binary = "^2.9.3"
|
2022-05-10 16:06:53 +02:00
|
|
|
sentry_sdk = "^1.5.11"
|
2020-10-01 12:13:28 +02:00
|
|
|
blinker = "^1.4"
|
|
|
|
arrow = "^0.16.0"
|
|
|
|
Flask-WTF = "^0.14.3"
|
|
|
|
boto3 = "^1.15.9"
|
|
|
|
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.11.1"
|
|
|
|
flask-debugtoolbar = "^0.11.0"
|
|
|
|
requests_oauthlib = "^1.3.0"
|
|
|
|
pyopenssl = "^19.1.0"
|
|
|
|
aiosmtpd = "^1.2"
|
|
|
|
dnspython = "^2.0.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"
|
|
|
|
pyspf = "^2.0.14"
|
|
|
|
Flask-Limiter = "^1.4"
|
|
|
|
memory_profiler = "^0.57.0"
|
2023-05-02 23:01:55 +02:00
|
|
|
gevent = "22.10.2"
|
2020-10-01 12:21:37 +02:00
|
|
|
email_validator = "^1.1.1"
|
2022-04-28 16:20:14 +02:00
|
|
|
PGPy = "0.5.4"
|
2020-12-13 19:12:02 +01:00
|
|
|
coinbase-commerce = "^1.0.1"
|
2021-05-13 22:44:16 +02:00
|
|
|
requests = "^2.25.1"
|
2023-05-02 23:01:55 +02:00
|
|
|
newrelic = "8.8.0"
|
2021-09-10 16:36:59 +02:00
|
|
|
flanker = "^0.9.11"
|
2021-09-21 10:54:35 +02:00
|
|
|
pyre2 = "^0.3.6"
|
2021-10-18 11:45:08 +02:00
|
|
|
tldextract = "^3.1.2"
|
2021-11-19 18:31:42 +01:00
|
|
|
flask-debugtoolbar-sqlalchemy = "^0.2.0"
|
2021-12-02 17:03:13 +01:00
|
|
|
twilio = "^7.3.2"
|
2022-02-03 11:09:17 +01:00
|
|
|
Deprecated = "^1.2.13"
|
2022-05-10 11:23:52 +02:00
|
|
|
cryptography = "37.0.1"
|
2022-05-23 14:41:06 +02:00
|
|
|
SQLAlchemy = "1.3.24"
|
2023-03-28 14:37:15 +02:00
|
|
|
redis = "^4.5.3"
|
2023-08-04 12:19:00 +02:00
|
|
|
newrelic-telemetry-sdk = "^0.5.0"
|
2023-09-29 17:26:40 +02:00
|
|
|
aiospamc = "0.10"
|
2020-10-01 12:13:28 +02:00
|
|
|
|
|
|
|
[tool.poetry.dev-dependencies]
|
2022-02-06 17:36:25 +01:00
|
|
|
pytest = "^7.0.0"
|
|
|
|
pytest-cov = "^3.0.0"
|
2022-02-06 15:25:53 +01:00
|
|
|
pre-commit = "^2.17.0"
|
2022-02-06 17:36:25 +01:00
|
|
|
black = "^22.1.0"
|
2022-07-04 16:01:04 +02:00
|
|
|
djlint = "^1.3.0"
|
|
|
|
pylint = "^2.14.4"
|
2020-10-01 12:13:28 +02:00
|
|
|
|
2023-11-21 16:42:18 +01:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
ruff = "^0.1.5"
|
|
|
|
|
2020-12-13 19:12:02 +01:00
|
|
|
[build-system]
|
|
|
|
requires = ["poetry>=0.12"]
|
|
|
|
build-backend = "poetry.masonry.api"
|