forked from andrew000/FTL-Extract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
149 lines (138 loc) · 3.14 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
[project]
name = "FTL-Extract"
description = "Extracts FTL files from a directory and outputs them to a directory"
version = "0.4.6"
authors = [{ name = "andrew000", email = "[email protected]" }]
keywords = ["ftl", "ftl-extract", "ftl-extractor"]
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
dependencies = [
"fluent-syntax>=0.19",
"click==8.*",
]
[project.optional-dependencies]
dev = [
"isort==5.13.2",
"pre-commit==4.0.1",
"ruff==0.7.4",
"mypy==1.13.0",
"typing-extensions==4.12.2",
]
tests = [
"pytest==8.3.3",
"pytest-cov==6.0.0",
"pytest-html==4.1.1",
"pytest-mock==3.14.0",
"coverage==7.6.7",
]
docs = [
"sphinx==7.4.7",
"sphinx-rtd-theme==3.0.2",
"sphinx-autobuild==2024.10.3",
"furo==2024.8.6",
"pytz==2024.2",
]
[project.urls]
Homepage = "https://github.com/andrew000/FTL-Extract"
Issues = "https://github.com/andrew000/FTL-Extract/issues"
Repository = "https://github.com/andrew000/FTL-Extract"
[project.scripts]
ftl-extract = "ftl_extract.cli:cli_extract"
ftl_extract = "ftl_extract.cli:cli_extract"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
testpaths = "tests"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"if TYPE_CHECKING:",
"importlib.metadata",
]
[tool.isort]
py_version = 39
src_paths = ["src", "tests"]
line_length = 100
multi_line_output = 3
force_grid_wrap = 0
include_trailing_comma = true
split_on_trailing_comma = false
single_line_exclusions = ["."]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
known_first_party = ["ftl_extract"]
[tool.ruff]
src = ["src", "tests"]
target-version = "py39"
line-length = 100
exclude = [
".git",
".mypy_cache",
".ruff_cache",
"__pypackages__",
"__pycache__",
"*.pyi",
"venv",
".venv",
"tests/.files",
"dist",
"build",
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A003",
"ANN002", "ANN003", "ANN101", "ANN102", "ANN401",
"C901",
"D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D203", "D205", "D212",
"ERA001",
"FA100", "FA102",
"FBT001", "FBT002",
"FIX002",
"I001",
"PLR0911", "PLR0912", "PLR0913", "PLR0915", "PLR5501",
"PLW0120",
"RUF001",
"S101",
"TD002", "TD003",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
python_version = "3.9"
mypy_path = "src"
packages = ["ftl_extract"]
plugins = []
allow_redefinition = true
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
extra_checks = true
follow_imports = "skip"
follow_imports_for_stubs = false
ignore_missing_imports = false
namespace_packages = true
no_implicit_optional = true
no_implicit_reexport = true
pretty = true
show_absolute_path = true
show_error_codes = true
show_error_context = true
warn_unused_configs = true
warn_unused_ignores = true
disable_error_code = [
"no-redef",
]
exclude = [
"\\.?venv",
"\\.idea",
"\\.tests?",
]