-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
73 lines (63 loc) · 2.09 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
[tool.poetry]
name = "dfint64_patch"
version = "0.2.0"
description = "Text patcher for x64 bit version of the Dwarf Fortress game"
authors = ["insolor <[email protected]>"]
license = "MIT License"
[tool.poetry.dependencies]
python = "^3.10"
click = "^8.1.8"
loguru = "^0.7.3"
omegaconf = "^2.3.0"
tqdm = "^4.67.1"
lief = "^0.16.4"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.5"
pytest-cov = "^6.1.0"
hypothesis = "^6.130.6"
coverage = "^7.8.0"
mypy = "^1.14.1"
ruff = "^0.11.2"
[tool.poetry.scripts]
extract = "dfint64_patch.extract_strings.cli:main"
patch = "dfint64_patch.patch:main"
[tool.poe.tasks]
extract.script = "dfint64_patch.extract_strings.cli:main"
[[tool.poetry.source]]
name = "dfint"
url = "https://dfint.github.io/pypi-index/"
priority = "explicit"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"T201", # `print` found
"S101", # Use of assert detected
"C408", # Unnecessary `dict` call (rewrite as a literal)
"D",
# "D100", # Missing docstring in public module
# "D104", # Missing docstring in public package
# "D105", # Missing docstring in magic method
# "D200", # One-line docstring should fit on one line
# "D212", # Multi-line docstring summary should start at the first line
"TD", # Ignore todo warnings
"FIX002", # Ignore todo warnings
"COM812", # Ignore missing trailing comma warning, which conflicts with formatter
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # Don't warn about using of asserts in tests
"ANN201", # Ignore "Missing return type annotation for public function", tests don't return anything
"D", # Don't warn about missing documentation in tests
"RUF001", # String contains ambiguous {}. Did you mean {}?
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"PLR2004", # Magic value used in comparison
"FBT001", # Ignore boolean positional argument
]