-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
145 lines (128 loc) · 3.51 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
[tool.poetry]
name = "monty"
version = "1.0.0"
description = "Helpful bot for python, github, and discord things."
authors = ["aru <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "~=3.10"
aiodns = "~=3.2"
aiohttp = { version = "~=3.10.11", extras = ['speedups'] }
yarl = "^1.17.2" # transitive dependency of aiohttp
arrow = "~=1.3.0"
attrs = "^24.2.0"
base65536 = "^0.1.1"
beautifulsoup4 = "^4.12.3"
cachingutils = { git = "https://github.com/onerandomusername/cachingutils.git", rev='vcokltfre/feat/v2' }
colorama = { version = "~=0.4.5", markers = "sys_platform == 'win32'" }
coloredlogs = "~=15.0"
disnake = { version = '~=2.9.3' }
orjson = "^3.10.11"
fakeredis = "^2.26.1"
gql = "^3.5.0"
lxml = "^5.3.0"
markdownify = "==0.11.6"
mistune = "^2.0.4"
msgpack = "^1.1.0"
redis = { version = "^5.2.0", extras = ['hiredis'] }
Pillow = "^11.0"
psutil = "^5.9.8"
python-dateutil = "^2.9.0"
rapidfuzz = "^3.10.1"
sentry-sdk = "^2.18.0"
statsd = "^3.3.0"
# database dependencies
alembic = "^1.14.0"
asyncpg = "^0.30.0"
SQLAlchemy = { version = "~=2.0.36", extras = ['asyncio'] }
watchfiles = "^0.24.0"
[tool.poetry.extras]
fakeredis = ['fakeredis']
dev = ['fakeredis', 'watchfiles']
[tool.poetry.dev-dependencies]
black = "^24.10.0"
ruff = "==0.7.4"
isort = "^5.13.2"
pre-commit = "^4.0.1"
taskipy = "~=1.14.0"
python-dotenv = "^1.0.1"
pyright = "==1.1.389"
msgpack-types = "^0.5.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py38']
include = '\.pyi?$'
preview = true
[tool.isort]
profile = "black"
atomic = true
ensure_newline_before_comments = true
force_grid_wrap = 0
include_trailing_comma = true
line_length = 120
lines_after_imports = 2
multi_line_output = 3
use_parentheses = true
known_first_party = ["monty"]
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint.isort]
known-first-party = ["monty"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle
"S", # bandit
# "RUF", # ruff specific exceptions
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C", # flake8-comprehensions
"D", # flake-docstrings
"DTZ", # flake8-datetimez
"G", # flake8-logging-format
"Q", # flake8-quotes
"T201", "T203" # flake8-print
]
ignore = [
# Missing Docstrings
"D100","D101","D104","D105","D106","D107",
# Docstring Whitespace
"D203","D212","D214","D215",
# Docstring Content
"D400","D402","D404","D405","D406","D407","D408","D409","D410","D411","D412","D413","D414","D416","D417",
# ignore imperative mood for now
"D401",
# Type Annotations
"ANN002","ANN003","ANN101","ANN102","ANN204","ANN206","ANN401",
# temporarily disabled
"C901", # mccabe
"G004", # Logging statement uses f-string
"S101", # Use of `assert` detected
"S110", # try-except-pass
"S311", # pseduo-random generators, random is used everywhere for random choices.
]
[tool.ruff.lint.per-file-ignores]
"monty/alembic/*" = ["D"]
"_global_source_snekcode.py" = ["T201"]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.taskipy.tasks]
export = 'poetry export --without-hashes -o requirements.txt'
start = "python -m monty"
lint = "pre-commit run --all-files"
precommit = "pre-commit install"
pyright = { cmd = "dotenv -f task.env run -- pyright", help = "Run pyright" }
html = "coverage html"
report = "coverage report"
[tool.pyright]
typeCheckingMode = "basic"
include = [
"monty",
"*.py",
]
strictParameterNoneValue = false