-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
94 lines (81 loc) · 2.04 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
[tool.poetry]
name = "sys-vars"
version = "5.1.0"
description = "Access system variables in your code as native Python data types."
authors = ["Caleb <le717@users.noreply.github.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/le717/sys-vars"
classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Typing :: Typed",
]
include = ["py.typed"]
[tool.poetry.dependencies]
python = "^3.8"
python-dotenv = { version = "^1.0.1", optional = true }
[tool.poetry.extras]
dotenv = ["python-dotenv"]
[tool.poetry.group.dev]
[tool.poetry.group.dev.dependencies]
ruff = "^0.4.8"
mypy = "^1.10.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
python_version = "3.8"
[tool.ruff]
target-version = "py38"
line-length = 100
indent-width = 4
extend-exclude = ["tests", "sys_vars.pyi"]
[tool.ruff.lint]
preview = true
ignore = [
"COM812", # missing-trailing-comma
"PLR6301", # no-self-use
"PLR1711", # useless-return
"RET501", # unnecessary-return-none
"TD002", # missing-todo-author
"TD003", # missing-todo-link
]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"COM", # flake8-commas
"DTZ", # flake8-datetimez
"EM", # flake8-errmsg
"ERA", # eradicate
"F", # pyflakes
"FIX", # flake8-fixme
"FLY", # flynt
"FURB", # refurb
"I", # isort
"LOG", # flake8-logging
"G", # flake8-logging-format
"PERF", # Perflint
"PIE", # flake8-pie
"PL", # pylint
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"T20", # flake8-print
"TD", # flake8-todos
"UP", # pyupgrade
]
[tool.ruff.format]
preview = true
indent-style = "space"
quote-style = "double"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
lines-after-imports = 2