1
1
[build-system ]
2
- requires = [" hatchling" ]
3
2
build-backend = " hatchling.build"
3
+ requires = [" hatchling" ]
4
4
5
5
[project ]
6
- name = " django-flyio"
7
- description = ' A set of simple utilities for Django apps running on Fly.io'
8
- readme = " README.md"
9
- requires-python = " >=3.8"
10
- license = " MIT"
11
- keywords = []
12
- authors = [{
name =
" Josh" ,
email =
" [email protected] " }]
6
+ authors = [{
name =
" Josh" ,
email =
" [email protected] " }]
13
7
classifiers = [
14
8
" Development Status :: 4 - Beta" ,
15
9
" License :: OSI Approved :: MIT License" ,
@@ -24,11 +18,19 @@ classifiers = [
24
18
" Programming Language :: Python :: Implementation :: CPython" ,
25
19
]
26
20
dependencies = [" django>=3.2" , " dj_database_url" ]
21
+ description = ' A set of simple utilities for Django apps running on Fly.io'
27
22
dynamic = [" version" ]
23
+ keywords = []
24
+ license = " MIT"
25
+ name = " django-flyio"
26
+ readme = " README.md"
27
+ requires-python = " >=3.8"
28
28
29
29
[project .optional-dependencies ]
30
30
dev = [" black" , " hatch" , " ruff" ]
31
- test = [" coverage[toml]" , " pytest" , " pytest-asyncio" , " pytest-django" ]
31
+ psycopg = [" psycopg[binary]" ]
32
+ psycopg2 = [" psycopg2-binary" ]
33
+ test = [" coverage[toml]" , " nox" , " pytest" , " pytest-asyncio" , " pytest-django" ]
32
34
types = [" django-stubs" , " mypy" ]
33
35
34
36
[project .urls ]
@@ -40,32 +42,44 @@ Source = "https://github.com/joshuadavidthomas/django-flyio"
40
42
path = " src/django_flyio/__init__.py"
41
43
42
44
[tool .black ]
43
- target-version = [" py38" ]
44
45
line-length = 120
45
46
skip-string-normalization = true
47
+ target-version = [" py38" ]
46
48
47
49
[tool .coverage .report ]
48
50
exclude_lines = [" no cov" , " if __name__ == .__main__.:" , " if TYPE_CHECKING:" ]
49
51
50
52
[tool .mypy ]
53
+ ignore_missing_imports = true
51
54
mypy_path = " src/"
52
55
namespace_packages = false
53
56
show_error_codes = true
54
57
strict = true
55
58
warn_unreachable = true
56
- ignore_missing_imports = true
57
59
58
60
[[tool .mypy .overrides ]]
59
- module = " tests.*"
60
61
allow_untyped_defs = true
62
+ module = " tests.*"
61
63
62
64
[tool .pytest .ini_options ]
63
- django_find_project = false
64
65
DJANGO_SETTINGS_MODULE = " tests.settings"
66
+ django_find_project = false
65
67
pythonpath = " . src"
66
68
67
69
[tool .ruff ]
68
- target-version = " py38"
70
+ ignore = [
71
+ # Allow non-abstract empty methods in abstract base classes
72
+ " B027" , # Allow boolean positional values in function calls, like `dict.get(... True)`
73
+ " FBT003" , # Ignore checks for possible passwords
74
+ " S105" ,
75
+ " S106" ,
76
+ " S107" , # Ignore complexity
77
+ " C901" ,
78
+ " PLR0911" ,
79
+ " PLR0912" ,
80
+ " PLR0913" ,
81
+ " PLR0915" ,
82
+ ]
69
83
line-length = 120
70
84
select = [
71
85
" A" ,
@@ -94,30 +108,15 @@ select = [
94
108
" W" ,
95
109
" YTT" ,
96
110
]
97
- ignore = [
98
- # Allow non-abstract empty methods in abstract base classes
99
- " B027" ,
100
- # Allow boolean positional values in function calls, like `dict.get(... True)`
101
- " FBT003" ,
102
- # Ignore checks for possible passwords
103
- " S105" ,
104
- " S106" ,
105
- " S107" ,
106
- # Ignore complexity
107
- " C901" ,
108
- " PLR0911" ,
109
- " PLR0912" ,
110
- " PLR0913" ,
111
- " PLR0915" ,
112
- ]
111
+ target-version = " py38"
113
112
unfixable = [
114
113
# Don't touch unused imports
115
114
" F401" ,
116
115
]
117
116
118
117
[tool .ruff .isort ]
119
- known-first-party = [" django_flyio" ]
120
118
force-single-line = true
119
+ known-first-party = [" django_flyio" ]
121
120
required-imports = [" from __future__ import annotations" ]
122
121
123
122
[tool .ruff .flake8-tidy-imports ]
0 commit comments