-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
169 lines (143 loc) · 3.7 KB
/
pyproject.toml
File metadata and controls
169 lines (143 loc) · 3.7 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.pdm.source]
name = "public"
url = "https://github.com/AlexFlipnote/dotenvplus"
[project]
name = "dotenvplus"
description = "Reads key-value pairs from a .env file and supports multiple values with dynamic interpolation."
requires-python = ">=3.7.0"
license = "MIT"
dynamic = ["version"]
readme = "README.md"
keywords = ["dotenv", "env", "config", "environment", "variables", "key-value", "parser"]
authors = [{name = "AlexFlipnote", email = "root@alexflipnote.dev"}]
dependencies = []
[project.urls]
Homepage = "https://github.com/AlexFlipnote/dotenvplus"
Repository = "https://github.com/AlexFlipnote/dotenvplus"
[dependency-groups]
dev = [
"pyright>=1.1.401",
"ruff>=0.11.13",
]
[tool.setuptools]
packages = [
"dotenvplus",
]
[tool.setuptools.dynamic]
version = {attr = "dotenvplus.__version__"}
readme = {file = ["README.md"]}
[tool.ruff]
target-version = "py37"
indent-width = 4
line-length = 256 # Debating to change this.. not sure yet
output-format = "concise"
# Files to include/exclude
include = [
"dotenvplus/*",
]
exclude = [
"**/__pycache__",
"**/*.pyc",
"*.egg-info",
".venv",
"build",
"docs",
"dist",
"tests",
"examples",
]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ANN", # Annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # Error
"ERA", # eradicate
"F", # Pyflakes
"FIX", # flake8-fixme
"FLY", # flynt
"FURB", # refurb
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PIE", # flake8-pie
"PLE", # Pylint Errors
"PLW", # Pylint Warnings
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"T", # flake8-print
"TC", # type-checking
"UP", # pyupgrade
"W", # Warning
]
extend-select = ["W", "E"]
preview = true
ignore = [
# Docstring: function
"D100", # docstring in public module
"D104", # Missing docstring in public package
"D203", # 1 blank line required before class docstring
"D204", # 1 blank line required after class docstring
"D210", # No whitespaces surrounding docstring text
"D212", # Multi-line docstring start at first line
"D400", # Strictly must end with a period
"D401", # First line should be in imperative mood
"D413", # Missing blank line after last section
"D416", # Section name should end with a colon
# Annotations
"ANN003", # Missing type annotation for **kwargs
"ANN204", # Missing for __init__ method
# Type-checking
"TC001", "TC002", "TC003", "TC004", # Moving imports
# Docstring: Missing docs
"D101", # class
"D105", # magic method docstring required (__str__, __int__, etc)
"D107", # __init__ docstring required
# Except cases
"B904", # raise in except
# Simplify
"SIM105", # Use contextlib.suppress
"SIM114", # Merge if-else to one-liner
# Refurb
"FURB101", # read-whole-file
"FURB103", # write-whole-file
# Pylint Warnings
"PLW2901", # Overwrite loop control variable
# Type hints
"UP037", # type hints with quotes
# Variable shadowing
"A005", # Files
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.pyright]
reportOptionalOperand = "none"
reportOptionalSubscript = "none"
reportOptionalMemberAccess = "none"
reportUnnecessaryTypeIgnoreComment = "warning"
typeCheckingMode = "basic"
pythonVersion = "3.7"
include = [
"dotenvplus/*",
]
exclude = [
"**/__pycache__",
"**/*.pyc",
"*.egg-info",
".venv",
"build",
"docs",
"dist",
"tests",
"examples",
]