-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
88 lines (75 loc) · 1.68 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
[tool.poetry]
name = "doggo"
version = "0.1.0"
description = "A basic dog AI using Markov chain and pygame."
authors = ["u8slvn <u8slvn@gmail.com>"]
license = "LGPL-3.0"
readme = "README.md"
packages = [{include = "doggo", from = "src"}]
[tool.poetry.dependencies]
python = ">=3.12,<3.14"
numpy = "^2.0.0"
loguru = "^0.7.2"
pygame-ce = "2.4"
pyinstaller = "^6.10.0"
[tool.poetry.scripts]
doggo = "doggo.__main__:run"
[tool.poetry.group.dev.dependencies]
pytest = "^8.2.2"
pytest-mock = "^3.14.0"
pytest-cov = "^5.0.0"
mypy = "^1.10.0"
pre-commit = "^3.8.0"
freezegun = "^1.5.1"
pyinstaller-versionfile = {version = "^2.1.1", extras = ["build"]}
pillow = "^10.4.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
files = "src"
mypy_path = "src"
namespace_packages = true
show_error_codes = true
ignore_missing_imports = true
strict = true
[tool.black]
line_length = 88
[tool.ruff]
fix = true
line-length = 88
indent-width = 4
target-version = "py312"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.ruff.lint]
select = [
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"RUF", # ruff checks
"TID", # flake8-tidy-imports
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
force-single-line = true
lines-between-types = 1
lines-after-imports = 2
required-imports = [
"from __future__ import annotations",
]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"pass",
"raise NotImplementedError",
]
[tool.pytest.ini_options]
pythonpath = "src/"
testpaths = ["tests"]
addopts = [
"--import-mode=importlib",
]