-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
72 lines (62 loc) · 1.39 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
[tool.poetry]
name = "django-goals"
version = "0.3.5"
description = ""
authors = []
readme = "README.md"
license = "MIT"
packages = [
{ include = "django_goals" },
]
[tool.poetry.dependencies]
python = "^3.12"
django = ">=4.2"
django-object-actions = ">=4.3"
[tool.poetry.group.dev.dependencies]
pytest-django = "*"
pytest-cov = "*"
factory-boy = "*"
flake8 = "*"
flake8-isort = "*"
flake8-pyproject = "*"
django-environ = "*"
psycopg = "*"
pylint = "*"
pylint-django = "*"
cosmic-ray = "^8.3.15"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "example_project.settings"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
FAIL_INVALID_TEMPLATE_VARS = true
addopts = "--reuse-db"
[tool.flake8]
ignore = [
"E501", # line too long
"W504", # line break after binary operator
]
[tool.isort]
skip_gitignore = true
lines_after_imports = 2
# 5 = Hanging Grid Grouped
multi_line_output = 5
include_trailing_comma = true
[tool.pylint.format]
recursive = "yes"
load-plugins = [
"pylint_django",
]
disable = [
"line-too-long",
"missing-docstring",
"duplicate-code", # TODO: maybe enable someday?
"invalid-name",
"use-dict-literal",
"too-many-arguments",
"too-few-public-methods",
"too-many-ancestors",
]
[tool.pylint.pylint_django]
django-settings-module = "example_project.settings"