This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
77 lines (66 loc) · 1.66 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
[tool.poetry]
name = "cogs"
version = "0"
description = ""
authors = ["Defelo <elodef42@gmail.com>"]
readme = "README.md"
license = "GPL-3.0-only"
homepage = "https://github.com/PyDrocsid/cogs"
repository = "https://github.com/PyDrocsid/cogs"
[tool.poetry.dependencies]
python = "^3.10"
PyDrocsid = "^2.3.4"
SQLAlchemy = "^1.4.32"
aiohttp = "^3.8.1"
# general: custom_commands
# integrations: adventofcode, cleverbot
# moderation: invites
requests = "^2.27.1"
# information: user_info
python-dateutil = "^2.8.2"
[tool.poetry.dev-dependencies]
flake8 = "^4.0.1"
isort = "^5.10.1"
black = "^22.3.0"
wemake-python-styleguide = "^0.16.1"
mypy = "^0.942"
SQLAlchemy = { extras = ["mypy"], version = "^1.4.32" }
types-python-dateutil = "^2.8.10"
types-requests = "^2.27.15"
types-PyYAML = "^6.0.5"
[tool.poe.tasks]
flake8 = "flake8 . --count --statistics --show-source"
isort = "isort ."
black = "black ."
format = ["isort", "black"]
mypy = "mypy ."
lint = ["format", "flake8"]
pre-commit = ["lint"]
[tool.poe.tasks.setup]
shell = """
set -ex
poetry install --no-root
./pre-commit.sh install
"""
interpreter = "bash"
[tool.black]
target-version = ["py310"]
line-length = 120
skip-magic-trailing-comma = true
[tool.isort]
profile = "black"
py_version = 310
line_length = 120
lines_after_imports = 2
reverse_relative = true
known_pydrocsid = ["PyDrocsid"]
sections = ["FUTURE", "STDLIB", "FIRSTPARTY", "THIRDPARTY", "PYDROCSID", "LOCALFOLDER"]
[tool.mypy]
strict = true
ignore_missing_imports = true
no_incremental = true
namespace_packages = true
plugins = ["sqlalchemy.ext.mypy.plugin"]
[build-system]
requires = ["setuptools", "poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"