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 11
/
pyproject.toml
77 lines (69 loc) · 1.86 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 = "MorpheusHelper"
version = "0"
description = ""
authors = ["Defelo <[email protected]>"]
readme = "README.md"
license = "GPL-3.0-only"
homepage = "https://github.com/PyDrocsid/MorpheusHelper"
repository = "https://github.com/PyDrocsid/MorpheusHelper"
[tool.poetry.dependencies]
python = "^3.10"
#PyDrocsid = "^2.3.0dev1"
PyDrocsid = { path = "library/", develop = true }
SQLAlchemy = "^1.4.36"
aiohttp = "^3.8.1"
requests = "^2.27.1"
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.950"
SQLAlchemy = { extras = ["mypy"], version = "^1.4.36" }
types-python-dateutil = "^2.8.14"
types-requests = "^2.27.22"
types-PyYAML = "^6.0.7"
[tool.poe.tasks]
bot = { cmd = "python bot/morpheushelper.py", envfile = ".env" }
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
if ! [[ -e .env ]]; then cp morpheushelper.env .env; fi
./pre-commit.sh install
unset VIRTUAL_ENV
git submodule update --init
git submodule foreach 'poe setup'
"""
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"]
known_local_folder = ["cogs"]
sections = ["FUTURE", "STDLIB", "FIRSTPARTY", "THIRDPARTY", "PYDROCSID", "LOCALFOLDER"]
[tool.mypy]
strict = true
ignore_missing_imports = true
no_incremental = true
exclude = ["bot/library/PyDrocsid"]
plugins = ["sqlalchemy.ext.mypy.plugin"]
[build-system]
requires = ["setuptools", "poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"