-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
72 lines (57 loc) · 1.52 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
[build-system]
requires = ["setuptools", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "modman"
description = "Simple CLI to interact with Modrinth and manage server mods."
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.10"
license = { text = "GNU GPLv3" }
authors = [
{name = "Nexus", email = "[email protected]"}
]
dynamic = ["version", "dependencies"]
[project.urls]
Source = "https://github.com/nexy7574/modman"
Tracker = "https://github.com/nexy7574/modman/issues"
Funding = "https://ko-fi.com/nexy7574"
[project.scripts]
modman = "modman.main:main"
[tool.setuptools_scm]
write_to = "src/modman/__version__.py"
[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
[tool.black]
line-length = 120
target-version = ["py39", "py310", "py311", "py312"]
include = 'src/modman(/utils)?/.+\.py'
[tool.isort]
profile = "black"
src_paths = ["src/modman"]
[tool.ruff]
# Replacement for isort & black
exclude = [".git"]
target-version = "py39"
line-length = 120
indent-width = 4
respect-gitignore = true
[tool.ruff.lint]
fixable = ["ALL"]
ignore = ["F403", "F405"]
select = [
"E", # pycodestyle
"F", # Pyflakes
"I001", # isort
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
case-sensitive = true
combine-as-imports = true
detect-same-package = true
[tool.ruff.lint.pycodestyle]
max-doc-length = 120
max-line-length = 120