-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
150 lines (126 loc) Β· 2.63 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
146
147
148
149
150
# Poetry
[tool.poetry]
name = "codenames"
version = "5.5.1"
description = "Codenames board game logic implementation in python."
authors = ["Asaf Kali <[email protected]>"]
readme = "README.md"
include = ["CHANGELOG.md"]
[tool.poetry.urls]
Homepage = "https://github.com/asaf-kali/codenames"
Repository = "https://github.com/asaf-kali/codenames"
Issues = "https://github.com/asaf-kali/codenames/issues"
[tool.poetry.extras]
web = ["selenium"]
[tool.poetry.dependencies]
# Core
python = "^3.12"
pydantic = "^2.0"
# CLI
beautifultable = "^1.0"
# Web
selenium = { version = "^4.1", optional = true }
[tool.poetry.group.test.dependencies]
pytest = "^7.2"
coverage = "^7.2"
pytest-retry = "^1.6"
[tool.poetry.group.lint.dependencies]
ruff = ">=0.7"
black = ">=24.10"
isort = ">=5.12.0"
mypy = ">=1.13.0"
pylint = ">=3.3.3"
types-requests = "^2.28.11.17"
[tool.poetry.group.dev.dependencies]
pre-commit = ">=3.2.2"
twine = ">=5.0"
python-semantic-release = "^8.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Release
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
commit_parser = "emoji"
build_command = "make build"
commit_author = "Semantic release <semantic-release>"
commit_message = "π€ Release [{version}] [skip ci]"
[tool.semantic_release.branches.main]
match = "main"
prerelease = false
[tool.semantic_release.branches.dev]
match = ".*"
prerelease = true
prerelease_token = "dev"
[tool.semantic_release.commit_parser_options]
major_tags = [
"π₯",
"π",
"π",
]
minor_tags = [
"β¨",
"π₯",
"π²",
"π‘",
]
patch_tags = [
"π",
"π",
"ποΈ",
"π οΈ",
"π",
"π",
"π",
"π΄",
"π’",
"ποΈ",
]
# Test
[tool.pytest.ini_options]
addopts = "-s --disable-pytest-warnings --junitxml=junit.xml"
[tool.coverage.run]
source = ["codenames", "tests"]
omit = []
# Lint
[tool.ruff]
line-length = 120
exclude = ["local", ".deployment"]
[tool.ruff.lint]
select = ["B", "C", "E", "F", "W"]
ignore = []
[tool.black]
line-length = 120
[tool.isort]
skip = ["__init__.py"]
profile = "black"
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
exclude = ["build", "dist", "playground"]
[tool.pylint]
max-line-length = 120
good-names = [
"by",
"e",
"i",
"n",
"x",
]
disable = [
"C0114",
"C0115",
"C0116",
"R0801",
"R0903",
"R0917",
"W1203",
"fixme",
"too-many-arguments",
"too-many-public-methods",
"too-many-return-statements",
"too-many-locals",
]
extension-pkg-allow-list = ["pydantic"]
[tool.pylint.MASTER]
ignore-paths = ""