forked from adventurebrew/magos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
152 lines (133 loc) · 3.87 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
151
152
[tool.poetry]
name = "magos"
version = "0.5.0"
description = "Tools for editing AGOS games (e.g. Simon the Sorcerer by AdventureSoft)"
authors = ["BLooperZ <blooperz@users.noreply.github.com>"]
license = "GPL-3.0-or-later"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Topic :: Games/Entertainment",
"Topic :: Utilities",
]
keywords = ["agos", "simon", "sorcerer", "feeble", "adventure"]
repository = "https://github.com/adventurebrew/magos"
[tool.poetry.dependencies]
python = ">=3.10,<3.11"
typing-extensions = "^4.8.0"
numpy = "^1.26.0"
Pillow = "^10.0.1"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.2"
black = "^23.9.1"
ruff = "^0.0.292"
mypy = "^1.6.0"
pre-commit = "^3.4.0"
[tool.poetry.group.release.dependencies]
pip-licenses = "^4.3.3"
pyinstaller = "^6.0.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black] # https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
line-length = 88
target-version = ["py310"]
skip-string-normalization = true
[tool.mypy]
strict = true
[tool.ruff] # https://beta.ruff.rs/docs/settings/
target-version = "py310"
line-length = 88
fix = false
src = ["src", "tests"]
select = [ # https://beta.ruff.rs/docs/rules/
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"A", # flake8-builtins
"COM", # flake8-commas
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
# "DJ", # flake8-django
# "EM", # flake8-errmsg
"EXE", # flake8-executable
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"ERA", # eradicate
# "PD", # pandas-vet
"PGH", # pygrep-hooks
"PL", # Pylint
"PLC", # Convention
"PLE", # Error
"PLR", # Refactor
"PLW", # Warning
"TRY", # tryceratops
"NPY", # NumPy-specific rules
"ANN", # flake8-annotations
"YTT", # flake8-2020
"C90", # mccabe
"E", # pycodestyle
"W", # pycodestyle
"F", # Pyflakes
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"I", # isort
"N", # pep8-naming
"S", # flake8-bandit
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"Q", # flake8-quotes
"UP", # pyupgrade
"PT", # flake8-pytest-style
"RUF", # Ruff-specific rules
]
fixable = ["I", "COM"]
unfixable = ["ERA001", "F401", "F841", "T201", "T203"]
ignore = [
"RET504", # Allow assigning before return to ease debugging
"S101", # Allow using assert
"UP015", # Prefer explicitly configuring open mode
"ANN101", # Do not require annotating self
"PTH103", # `os.mkdirs` is more readable
"D107", # No need to docstring `__init__` method
"D202", # No blank lines allowed after function docstring -> clashes with Black
"ARG001", "ARG002", # Unused arguments are generally used for API compatibility
"D", # TODO: Add docstrings
]
[tool.ruff.pycodestyle]
max-doc-length = 88
[tool.ruff.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.flake8-type-checking]
strict = true
[tool.ruff.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "single"
[tool.ruff.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.ruff.per-file-ignores]
"__init__.py" = ["D104"]
"tests/**/*.py" = ["D100"]
"src/magos/chiper.py" = ["RUF001"]