-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
97 lines (82 loc) · 2.56 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
86
87
88
89
90
91
92
93
94
95
96
97
[tool.poetry]
name = "django-bulk-copy"
version = "0.2.0"
authors = ["Ahmet Burak Ozyurt <[email protected]>"]
maintainers = [
"Ahmet Burak Ozyurt <[email protected]>",
"Onuralp SEZER <[email protected]>",
]
packages = [
{include = "bulk_copy"},
{include = "bulk_copy/py.typed"}
]
description = "Faster way to create your models in Django"
keywords = ["django","postgres","django-bulk-copy","bulk","t-sql"]
exclude = ["tests/"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
]
[tool.poetry.urls]
#"Bug Tracker" = "https://github.com/ahmetveburak/django-bulk-copy/issues"
homepage = "https://github.com/ahmetveburak/django-bulk-copy"
repository = "https://github.com/ahmetveburak/django-bulk-copy"
documentation = "https://github.com/ahmetveburak/django-bulk-copy/blob/main/README.md"
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
django = ">=3"
psycopg2-binary = {version = "^2.9.10", optional = true}
psycopg2 = {version = "^2.9.10", optional = true}
[tool.poetry.extras]
postgres-binary = ["psycopg2-binary"]
postgres = ["psycopg2"]
[tool.poetry.group.dev.dependencies]
mypy = "^1.11"
pre-commit = "^4.0.1"
ruff = "^0.6.9"
tox = "^4.22.0"
pytest-django = "^4.9.0"
pytest-cov = "^5.0.0"
pytest-mock = "^3.14.0"
django-stubs = {extras = ["compatible-mypy"], version = "^5.1.0"}
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE="tests.settings"
addopts = "--cov=bulk_copy --cov-report=term-missing"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"pass",
"NotImplementedError",
"if typing.TYPE_CHECKING:",
]
[tool.ruff]
target-version = "py312"
# Exclude a variety of commonly ignored directories.
extend-exclude = []
# Same as Black.
line-length = 119
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
per-file-ignores = { }
[tool.bandit]
target = ["bulk_copy"]
exclude_dirs = ["tests/"]
skips = ["B101", "B311","B608"]
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
[tool.django-stubs]
django_settings_module = "tests.settings"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"