-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
112 lines (99 loc) · 3.14 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "django-eventlog"
version = "2.1"
packages = [{include = "eventlog"}]
description = "django-eventlog stores event messages in a Django model."
authors = ["Martin Mahner <martin@mahner.org>"]
license = "MIT"
readme = ["README.md", "CHANGELOG.md"]
homepage = "https://barttc.github.io/django-eventlog/"
documentation = "https://barttc.github.io/django-eventlog/"
keywords = ["django", "logging", "logger", "events"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django",
]
[tool.poetry.urls]
Source = "https://github.com/bartTC/django-eventlog"
Bugtracker = "https://github.com/bartTC/django-eventlog/issues"
[tool.poetry.dependencies]
python = "^3.8"
django = ">=3.2"
[tool.poetry.group.dev.dependencies]
pytest = "^8.1.1"
pytest-cov = "^4.1.0"
pytest-django = "^4.8.0"
ruff = "^0.3.3"
django-stubs = {extras = ["compatible-mypy"], version = "^4.2.7"}
mkdocs-material = "^9.5.14"
mkdocs-include-markdown-plugin = "^6.0.4"
[tool.poetry.scripts]
tests = "pytest:main"
[tool.ruff]
target-version = "py38"
exclude = ["migrations"]
lint.select = ["ALL"]
lint.ignore = [
"ANN101", # Missing type annotation for `self`
"ANN401", # typing.Any is disallowed as function arg type
"ARG001", # Unused function argument
"ARG002", # Unused method argument
"D", # Missing or badly formatted docstrings
"E501", # Line too long (>88)
"ERA001", # Found commented-out code
"FBT", # Flake Boolean Trap (don't use arg=True in functions)
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"SLF001", # Private member accessed: `_meta`
"COM812", # (ruff format) Checks for the absence of trailing commas
"ISC001", # (ruff format) Checks for implicitly concatenated strings on a single line
]
[tool.ruff.lint.extend-per-file-ignores]
"test_*.py" = [
"S101", # Use of `assert` detected
"PLR2004", # Magic value used in comparison, consider replacing 200 with a constant variable
]
[tool.pytest.ini_options]
python_files = [
"tests.py",
"test_*.py",
"*_tests.py",
]
addopts = """
--ds=eventlog.tests.testapp.settings
--reuse-db
--cov
"""
filterwarnings = ["ignore::RuntimeWarning"]
[tool.coverage]
run.omit = [
"eventlog/tests/*",
"eventlog/migrations/*",
]
report.exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.mypy]
check_untyped_defs = true
ignore_errors = false
ignore_missing_imports = true
strict_optional = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
exclude = ".*/migrations/.*"
[tool.django-stubs]
django_settings_module = "eventlog.tests.testapp.settings"