-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
pyproject.toml
174 lines (149 loc) · 2.6 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[tool.poetry]
name = "aura-text"
version = "2.0.0"
description = "IDE built with PySide6"
authors = ["Rohan Kishore (@rohankishore on GitHub)"]
license = "MIT"
readme = "README.md"
packages = [{include = "aura_text"}]
[tool.poetry.dependencies]
python = ">=3.7,<3.12"
pyttsx3 = "^2.90"
pyperclip = "^1.8.2"
pyside6 = "^6.5.0"
autopep8 = "^2.0.2"
pyqtconsole = "^1.2.3"
[tool.black]
line-length = 100
target-version = ['py310']
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| __pycached__
| _build
| buck-out
| build
| dist
)/
'''
[tool.ruff]
line-length = 100
select = ["ALL"]
target-version = "py38"
ignore = [
"I001", # isort, handled by pc-hook.
"TID252",
# we use asserts in tests and to hint mypy
"E501", # line too long, handled by black.
"S101",
"S102",
"S104",
"S324",
"EXE002",
# maybe we can enable this in future
# we'd want to have consistent docstrings in future
"D",
"ANN101", # missing annotation for self?
# definitely enable these, maybe not in tests
"ANN001",
"ANN002",
"ANN003",
"ANN102",
"ANN201",
"ANN202",
"ANN204",
"ANN205",
"ANN206",
"ANN401",
"PGH003",
"PGH004",
"RET504",
"RET505",
"RET506",
"RET507",
"BLE001",
"RET503",
"B008",
"N811",
"N804",
"N818",
# Variable `T` in function should be lowercase
# this seems a potential bug or opportunity for improvement in ruff
"N806",
# first argument should named self (found in tests)
"N805",
"N815",
# shadowing builtins
"A001",
"A002",
"A003",
"ARG001",
"ARG002",
"ARG003",
"ARG004",
"ARG005",
"FBT001",
"FBT002",
"FBT003",
"PT001",
"PT023",
# enable these, we have some in tests
"B006",
"PT004",
"PT007",
"PT011",
"PT012",
"PT015",
"PT017",
"C414",
"N802",
"SIM117",
"SIM102",
"F841",
"B027",
"B905",
"ISC001",
# same?
"S105",
"S106",
"DTZ003",
"DTZ005",
"RSE102",
"SLF001",
# in tests
"DTZ001",
"EM101",
"EM102",
"EM103",
"B904",
"B019",
"N801",
"N807",
# pandas
"PD",
# code complexity
"C",
"C901",
# trailing commas
"COM812",
"PLR",
"INP",
"TRY",
"SIM300",
"SIM114",
"DJ008",
]
fix = true
src = ["qtgql", "tests"]
[tool.ruff.flake8-annotations]
suppress-none-returning = true
[tool.ruff.pyupgrade]
keep-runtime-typing = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"