This repository was archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (91 loc) · 2.47 KB
/
pyproject.toml
File metadata and controls
113 lines (91 loc) · 2.47 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
[project]
name = "CellualrAutomaton"
description = "The Game of Life is a cellular automaton."
version = "1.1.0"
readme = "README.md"
requires-python = ">=3.11"
[[project.authors]]
name = "Ivan Kovach"
email = "covach.qn@gmail.com"
[project.license]
file = "LICENSE"
[project.urls]
Repository = "https://github.com/Qu1nel/CellularAutomaton"
[tool.poetry]
name = "CellualrAutomaton"
version = "1.1.0"
description = "The Game of Life is a cellular automaton."
authors = ["Ivan Kovach <covach.qn@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
pygame = "^2.5.2"
loguru = "^0.7.2"
numpy = "^1.26.4"
numba = "^0.59.0"
click = "^8.1.7"
pydantic = "^2.6.1"
[tool.poetry.group.dev.dependencies]
ruff = "^0.2.1"
mypy = "^1.8.0"
pyright = "^1.1.350"
black = "^24.1.1"
pytest = "^8.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
target-version = "py311"
exclude = [
".bzr", ".direnv", ".eggs", ".git", ".git-rewrite",
".hg", ".mypy_cache", ".nox", ".pants.d", ".pytype",
".ruff_cache", ".svn", ".tox", ".venv", ".env",
"__pypackages__", "__pycache__", "_build", "buck-out",
"build", "dist", "node_modules", "venv", "env",
]
[tool.ruff.lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
pydocstyle.convention = "google"
mccabe.max-complexity = 10
select = ["ALL"]
ignore = [
"ANN002", "ANN003", "ANN101", "ANN102", "ANN401",
"D100", "D203", "D213", "B006", "B009", "B010",
"FBT001", "FBT002", "PYI001", "PYI024", "PGH003",
"PGH004", "TD002", "TD002", "S101", "S311", "T201",
"T203", "INP001", "PIE796", "RET504", "PTH123", "UP007",
"D107", "D104", "D105",
]
[tool.ruff.lint.per-file-ignores]
"tests/test_cli.py" = ["D103", "N802"]
"src/bases.py" = ["D103", "D102", "D101"]
"src/engines/core.py" = ["N802", "PLR0913"]
"src/interfaces/elements.py" = ["PLR0913"]
[tool.mypy]
python_version = "3.11"
plugins = "numpy.typing.mypy_plugin"
check_untyped_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
[[tool.mypy.overrides]]
module = ['tests.*']
disallow_untyped_defs = false
strict_equality = false
[tool.pyright]
include = ["src"]
exclude = []
venv = ".venv"
[tool.black]
line-length = 120
target-version = ["py311"]
include = '\.pyi?$'
[tool.pytest.ini_options]
filterwarnings = [
'ignore::DeprecationWarning'
]