-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
85 lines (76 loc) · 1.89 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[tool.poetry]
name = "django-ses-sns-tracker"
version = "4.0.0"
description = "Simple wrapper around django-ses to receive and persist sns event data"
authors = ["anfema GmbH <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/anfema/django-ses-sns-tracker"
classifiers = [
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Operating System :: OS Independent",
]
packages = [
{ include = "ses_sns_tracker" },
]
[tool.poetry.dependencies]
python = "^3.8" # update [tool.ruff] section too
django-ses = { version = "^3.5.2", extras = ["events"] }
requests = "*"
typing_extensions = "*"
[tool.poetry.extras]
cryptography = [] # deprecated; `cryptography` is already a dependency of `django-ses[events]`
[tool.poetry.group.dev.dependencies]
Django = "*"
psycopg2 = "*"
coverage = "*"
tox = "*"
boto3 = "^1.33.6" # required speed up dependency resolution
pre-commit = "^3.5.0"
ruff = "0.1.7" # keep in sync with `.pre-commit-config.yaml` & `.github/workflows/code_style.yml`
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# linting & formatter
[tool.ruff]
target-version = "py38"
line-length = 120
indent-width = 4
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# flake8-django
#"DJ",
# flake8-comprehensions
"C4",
# flake8-2020
"YTT",
# flake8-gettext
"INT",
# flake8-datetimez
"DTZ",
# flake8-debugger
"T10",
# flake8-print
"T20",
]
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint.isort]
lines-after-imports = 2
section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
# Group all Django imports into a separate section.
"django" = ["django"]