-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpyproject.toml
166 lines (144 loc) · 3.3 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[project]
name = "geopuzzle"
version = "0.2.0"
description = ""
authors = [
{name = "TyVik", email = "[email protected]"}
]
license = {text = "MIT"}
requires-python = ">=3.11"
dependencies = [
"boto3",
"channels",
"channels-redis",
"daphne",
"django==3.2.22",
"django-admin-autocomplete-filter",
"django-admirarchy",
"django-dotenv",
"django-enumfield",
"django-filter",
"django-json-widget",
"django-redis",
"django-redis-sessions",
"django-settings-export",
"django-storages",
"gunicorn",
"psycopg2-binary",
"pillow",
"requests",
"sentry-sdk",
"social-auth-app-django",
"sorl-thumbnail",
"sparqlwrapper",
"tqdm"
]
readme = "README.md"
[project.urls]
Homepage = "https://geopuzzle.org"
Repository = "https://github.com/tyvik/geopuzzle"
[project.scripts]
pdm = "pdm.core:main"
[tool.pdm.scripts]
_.env_file = ".env"
pylint = {cmd = "pylint --rcfile pyproject.toml common maps puzzle quiz users workshop"}
ruff = {cmd = "ruff check ."}
lint = {composite = ["pylint", "ruff"]}
[tool.pdm.dev-dependencies]
lint = [
"mypy",
"django-stubs",
"pylint",
"pylint-django",
"ruff"
]
test = [
"codecov",
"factory-boy"
]
develop = [
"django-extensions",
"gprof2dot",
"pdm-django"
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.mypy]
check_untyped_defs = true
ignore_missing_imports = true
strict_equality = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
mypy_path = ["./"]
linecount_report = ".typecov/report"
[tool.mypy.plugins.django-stubs]
django_settings_module = "mercator.settings.circleci"
[tool.mypy.plugins.mypy_django_plugin.main]
[tool.coverage.run]
omit = [
"*/migrations/*",
"mercator/settings/*",
"manage.py",
"*/apps.py"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:"
]
[tool.pylint.MASTER]
ignore = ["CVS", "commands", "migrations"]
jobs = 0
load-plugins = ["pylint_django"]
django-settings-module = "mercator.settings.circleci"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"missing-function-docstring",
"missing-class-docstring",
"missing-module-docstring",
"too-few-public-methods",
"no-member",
"unsubscriptable-object",
"unused-wildcard-import",
"wildcard-import",
"consider-using-f-string"
]
enable = ["c-extension-no-member"]
[tool.pylint.REFACTORING]
never-returning-functions = ["sys.exit"]
[tool.pylint.VARIABLES]
ignored-argument-names = "_.*|^ignored_|^unused_|args|kwargs"
[tool.pylint.FORMAT]
expected-line-ending-format = "LF"
max-line-length = 120
[tool.pylint.TYPECHECK]
ignored-modules = []
[tool.pylint.BASIC]
const-naming-style = "any"
good-names = ["i", "j", "k", "ex", "Run", "_", "pk", "x", "y", "id", "logger"]
[tool.pylint.SIMILARITIES]
ignore-imports = false
[tool.pylint.IMPORTS]
deprecated-modules = ["optparse", "tkinter.tix"]
[tool.ruff]
line-length = 120
target-version = "py311"
exclude = [
".git",
".mypy_cache",
".ruff_cache",
"__pypackages__",
"node_modules",
"migrations",
"pgdata",
"settings"
]