Skip to content

Commit fc10d97

Browse files
Fix pyproject.toml
1 parent 356458c commit fc10d97

2 files changed

Lines changed: 116 additions & 252 deletions

File tree

‎pyproject.toml‎

Lines changed: 8 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
name = "TeX-Bot-Py-V2"
33
version = "0.1.0"
44
requires-python = "==3.13.*" # TODO: Make minimum version Python 3.14, once Pycord makes a new release with support for it
5+
dependencies = [
6+
"strictyaml>=1.7.3",
7+
]
58

69
[dependency-groups]
710
dev = [
@@ -35,73 +38,10 @@ type-check = [
3538
"types-beautifulsoup4>=4.12"
3639
]
3740

38-
39-
[tool.poetry.dependencies]
40-
python = "^3.12"
41-
py-cord = "~2.6"
42-
beautifulsoup4 = "^4.12"
43-
emoji = "^2.12"
44-
parsedatetime = "^2.6"
45-
django = "~5.0"
46-
matplotlib = "^3.9"
47-
mplcyberpunk = "^0.7"
48-
python-logging-discord-handler = "^0.1"
49-
classproperties = {git = "https://github.com/hottwaj/classproperties.git"}
50-
asyncstdlib = "~3.12"
51-
setuptools = "^70.3"
52-
strictyaml = "^1.7"
53-
python-slugify = "^8.0"
54-
aiopath = "^0.7"
55-
56-
[tool.poetry.group.dev.dependencies]
57-
pre-commit = "^3.8"
58-
mypy = "~1.11"
59-
django-stubs = {extras = ["compatible-mypy"], version = "~5.0"}
60-
types-beautifulsoup4 = "^4.12"
61-
pytest = "^8.3"
62-
ruff = "^0.5"
63-
ccft-pymarkdown = "^1.1"
64-
65-
66-
67-
[tool.pytest.ini_options]
68-
filterwarnings = ["ignore:'audioop':DeprecationWarning"]
69-
70-
71-
[tool.mypy]
72-
plugins = ["mypy_django_plugin.main"]
73-
exclude = ["db/_settings\\.py$", "venv/"]
74-
extra_checks = true
75-
warn_unused_configs = true
76-
disallow_untyped_calls = true
77-
disallow_untyped_defs = true
78-
check_untyped_defs = true
79-
disallow_any_generics = true
80-
disallow_any_unimported = false
81-
disallow_any_decorated = true
82-
disallow_any_explicit = true
83-
disallow_subclassing_any = true
84-
disallow_untyped_decorators = true
85-
disallow_incomplete_defs = true
86-
warn_redundant_casts = true
87-
warn_unused_ignores = true
88-
warn_return_any = true
89-
no_implicit_reexport = true
90-
strict_equality = true
91-
warn_unreachable = true
92-
93-
[[tool.mypy.overrides]]
94-
module = [
95-
"mplcyberpunk",
96-
"discord_logging.handler",
97-
"parsedatetime",
98-
"strictyaml",
99-
"strictyaml.exceptions",
100-
"strictyaml.yamllocation",
101-
"aiopath",
102-
]
103-
ignore_missing_imports = true
104-
41+
[tool.coverage.report]
42+
exclude_also = ["if TYPE_CHECKING:"]
43+
skip_covered = true
44+
sort = "cover"
10545

10646
[tool.django-stubs]
10747
django_settings_module = "db._settings"
@@ -186,81 +126,6 @@ line-ending = "lf"
186126
quote-style = "double"
187127

188128
[tool.ruff.lint]
189-
select = [
190-
"E",
191-
"F",
192-
"W",
193-
"C",
194-
"I",
195-
"N",
196-
"D",
197-
"UP",
198-
"YTT",
199-
"ANN",
200-
"ASYNC",
201-
"S",
202-
"BLE",
203-
"FBT",
204-
"B",
205-
"A",
206-
"COM",
207-
"DTZ",
208-
"T",
209-
"DJ",
210-
"EM",
211-
"G",
212-
"INP",
213-
"PIE",
214-
"PT",
215-
"Q",
216-
"RSE",
217-
"RET",
218-
"SLF",
219-
"SLOT",
220-
"SIM",
221-
"TID",
222-
"TCH",
223-
"ARG",
224-
"PTH",
225-
"TD",
226-
"FIX",
227-
"ERA",
228-
"PGH",
229-
"PL",
230-
"TRY",
231-
"FLY",
232-
"PERF",
233-
"RUF",
234-
]
235-
fixable = ["I001", "TCH", "F401", "COM812"]
236-
ignore = [
237-
"N818",
238-
"N806",
239-
"D203",
240-
"D212",
241-
"ANN101",
242-
"ANN102",
243-
"Q003",
244-
"TD002",
245-
"TD003",
246-
"S311",
247-
"UP040", # NOTE: Mypy does not currently support PEP 695 type aliases, so they should not be used
248-
"PT009",
249-
"PT027",
250-
"TRY301",
251-
]
252-
task-tags = [
253-
"TODO",
254-
"FIXME",
255-
"HACK",
256-
"BUG",
257-
"NOBUG",
258-
"REQ",
259-
"IDEA",
260-
"NOTE",
261-
"ISSUE",
262-
"DONE",
263-
]
264129
allowed-confusables = [
265130
"s",
266131
"x",
@@ -348,6 +213,7 @@ extend-ignore-names = ["BROKEN_*_MESSAGE", "INVALID_*_MESSAGE", "NO_*_MESSAGE"]
348213
"stubs/discord/**/*.pyi" = ["F403"]
349214
"stubs/discord/commands/__init__.pyi" = ["F405"]
350215
"tests/**/test_*.py" = ["S101"]
216+
"config/_settings/_yaml/__init__.py" = ["E501"]
351217

352218
[tool.ruff.lint.pycodestyle]
353219
ignore-overlong-task-comments = true

0 commit comments

Comments
 (0)