-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
134 lines (118 loc) · 3.3 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
[build-system]
# Minimum requirements for the build system to execute.
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "pydiamond-engine"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{name = "FrankySnow9", email = "clairicia.rcj.francis@gmail.com"},
]
license = {file = "LICENSE"}
dependencies = [
"pygame==2.1.3.dev6",
"typing_extensions>=4.4.0,<5"
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: pygame",
"Typing :: Typed"
]
dynamic = ["version", "description"]
keywords = ["game", "game-engine", "game-development", "pygame", "pygame-library", "game-engine-2d"]
[project.urls]
Homepage = "https://github.com/francis-clairicia/PyDiamond"
############################ Flit configuration ############################
[tool.flit.module]
name = "pydiamond"
[tool.flit.sdist]
include = [
".flake8",
]
exclude = [
".github/",
".vscode/",
"demo_resources/",
"devtools/",
"requirements/",
"tests/",
".gitignore",
".gitmodules",
".bumpversion.cfg",
".pre-commit-config.yaml",
"demo.py",
"tox.ini",
]
############################ Development tools configuration ############################
[tool.isort]
profile = "black"
line_length = 130
combine_as_imports = true
sections = ["FUTURE", "STDLIB", "PYDIAMOND", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
known_pydiamond = ["pydiamond"]
add_imports = ["from __future__ import annotations"]
extend_skip = ["devtools"]
[tool.black]
line-length = 130
target-version = ["py310"]
force-exclude = "(devtools/)"
[tool.mypy]
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
python_version = "3.10"
show_error_codes = true
warn_unused_configs = true
disallow_any_generics = true
disallow_any_unimported = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
no_implicit_reexport = true
strict_equality = true
enable_error_code = ["truthy-bool", "ignore-without-code"]
[tool.pytest.ini_options]
minversion = "7.1.2"
testpaths = ["tests"]
markers = [
"slow: marks tests as slow",
"functional: marks tests as functional tests",
]
[tool.coverage.run]
branch = true
source_pkgs = [
"pydiamond",
]
[tool.coverage.report]
show_missing = true
precision = 2
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
# Don't complain about type hinting code:
"if (typing\\.)?TYPE_CHECKING:",
"@(typing\\.)?overload",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]