-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (91 loc) · 1.97 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (91 loc) · 1.97 KB
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
[project]
name = "zundamahjong"
dynamic = ["version"]
dependencies = [
"flask",
"flask-socketio",
"pydantic",
"sqlalchemy",
"werkzeug",
]
requires-python = ">=3.10"
# Project metadata
description = "Web-based Mahjong game"
readme = "README.md"
license = "MIT"
license-files = ["LICEN[CS]E"]
keywords = ["game", "mahjong", "webgame"]
classifiers = [
"Development Status :: 4 - Beta",
"Topic :: Games/Entertainment",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Framework :: Flask",
"Framework :: Pydantic",
"Programming Language :: JavaScript",
"Programming Language :: Python",
]
[project.urls]
Repository = "https://github.com/faraplay/zundamahjong"
[project.optional-dependencies]
postgresql = ["sqlalchemy[postgresql-psycopgbinary]"]
[project.scripts]
zundamahjong = "zundamahjong.cli:main"
# Building zundamahjong
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
# Dev dependencies
[dependency-groups]
dev = [
{include-group = "lint"},
{include-group = "test"},
]
lint = [
"basedpyright",
"mypy",
"ruff",
]
test = [
"pytest",
]
docs = [
"sphinx",
"sphinx-autobuild",
"sphinx-rtd-theme",
]
production = [
{include-group = "postgresql"},
"gunicorn",
]
postgresql = [
"psycopg[binary]",
]
alembic = [
"alembic[tz]",
]
# Type checker configuration
[tool.mypy]
files = ["src", "tests"]
strict = true
[[tool.mypy.overrides]]
module = ["flask_socketio.*"]
ignore_missing_imports = true
[tool.basedpyright]
include = ["src", "tests"]
allowedUntypedLibraries = ["flask_socketio"]
pythonVersion = "3.10"
reportUnusedCallResult = false
reportUnusedFunction = false
reportUnusedParameter = false
# Other tool configs
[tool.alembic]
script_location = "%(here)s/alembic"
timezone = "UTC"
[[tool.alembic.post_write_hooks]]
name = "ruff"
type = "module"
module = "ruff"
options = "check --fix REVISION_SCRIPT_FILENAME"
[tool.ruff]
extend-exclude = ["alembic"]