-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
63 lines (51 loc) · 1.64 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
[tool.poetry]
name = "digimon-card-game"
version = "0.1.0"
description = ""
authors = ["ezeBalsamo <alexander.ezequiel.balsamo@gmail.com>", "FedericoFuentesWeber <ffuentesweber@gmail.com>"]
readme = "README.md"
packages = [{include = "digimon_card_game"}, {include = "tests"}]
[tool.poetry.dependencies]
python = "^3.11"
attrs = "23.2.0"
[tool.poetry.group.dev.dependencies]
pytest = "8.3.1"
pytest-cov = "5.0.0"
mypy = "1.11.0"
pre-commit = "3.7.1"
[[tool.mypy.overrides]]
module = ["digimon_card_game.*", "tests.*"]
implicit_reexport = true
[tool.ruff]
target-version = "py312"
force-exclude = true # to respect exclusions (useful for pre-commit)
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # missing-trailing-comma
"D", # pydocstyle
"E501", # line-too-long (we use black)
"EM101", # raw-string-in-exception
"EM102", # f-string-in-exception
"ANN101", # missing-type-self
"TID252", # relative-imports
"TRY003", # raise-vanilla-args (we do not need to create additional exceptions)
"TCH", # flake8-type-checking
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [ "F401" ] # unused-import
"tests/**/*.py" = [
"S101", # assert
"PLR2004", # magic-value-comparison
]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["type"] # digi-egg cards and digimon cards
[tool.ruff.lint.mccabe]
max-complexity = 5
[tool.ruff.lint.pep8-naming]
ignore-names = ["Date"] # we tend to rename the class
[tool.ruff.lint.isort]
force-single-line = true # Forces all from imports to appear on their own line.
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"