-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
87 lines (72 loc) · 1.82 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
### project info ###
[tool.poetry]
name = "csm-web"
version = "0.1.0"
description = ""
authors = []
readme = "README.md"
### dependencies ###
[tool.poetry.dependencies]
python = "~3.9.13"
# AWS
boto3 = "^1.26.39"
# django
django = "^4.1.4"
django-csp = "^3.7"
django-extensions = "^3.2.1"
django-postgres-extra = "^2.0.6"
django-storages = "^1.13.2"
djangorestframework = "^3.14.0"
djangorestframework-camel-case = "^1.3.0"
drf-nested-forms = "^1.1.7"
# factories
factory-boy = "^3.2.1"
# misc
networkx = "^2.8.8"
# packages for testing
pytest = "^7.2.0"
pytest-django = "^4.5.2"
freezegun = "^1.2.2"
# console
ipython = "^8.7.0"
# prod dependencies that are still imported
sentry-sdk = "^1.12.1"
social-auth-app-django = "^5.0.0"
[tool.poetry.group.dev.dependencies]
# formatting/linting
black = "^22.12.0"
isort = "^5.12.0"
pre-commit = "^2.21.0"
pylint = "^2.15.9"
pylint-django = "^2.5.3"
[tool.poetry.group.prod]
# mark prod as optional; these are not needed during development
optional = true
[tool.poetry.group.prod.dependencies]
# django
django-heroku = "^0.3.1"
psycopg2-binary = "^2.9.5"
# heroku
gunicorn = "^20.1.0"
### tools ###
[tool.isort]
profile = "black"
[tool.black]
preview = true
[tool.pylint.MASTER]
load-plugins = "pylint_django"
# allow snake_case names of any length
variable-rgx = "^[a-z_][a-z0-9]*((_[a-z0-9]+)*)?$"
argument-rgx = "^[a-z_][a-z0-9]*((_[a-z0-9]+)*)?$"
# don't enforce module naming
module-naming-style = "any"
# ensure app imports are handled correctly
init-hook = "import sys; sys.path.insert(0, 'csm_web')"
[tool.pylint."MESSAGES CONTROL"]
# design: num. branches, num. lines, etc
# similarities: simiar chunks of code
# C0114: missing module docstring
# C0115: missing class docstring
disable = "design,similarities,C0114,C0115"
[tool.pylint.PYLINT_DJANGO]
django-settings-module = "csm_web.settings"