-
-
Notifications
You must be signed in to change notification settings - Fork 96
/
pyproject.toml
159 lines (137 loc) · 4.75 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "gridplayer"
version = "0.5.3"
description = "Play videos side-by-side"
authors = ["vzhd1701 <[email protected]>"]
readme = "README.md"
include = ["CHANGELOG.md"]
license = "GPL-3.0-or-later"
repository = "https://github.com/vzhd1701/gridplayer"
keywords = ["video", "player", "vlc", "pyqt", "Qt5", "multimedia"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"Natural Language :: English",
"Environment :: X11 Applications :: Qt",
"Operating System :: MacOS",
"Operating System :: Microsoft",
"Operating System :: Unix",
"Topic :: Multimedia :: Video :: Display",
]
[tool.poetry.urls]
"Changelog" = "https://github.com/vzhd1701/gridplayer/blob/master/CHANGELOG.md"
[tool.poetry.scripts]
gridplayer = "gridplayer.__main__:main"
[tool.poetry.dependencies]
python = "^3.8.1"
PyQt5 = "5.15.7"
PyQt5-Qt5 = "5.15.2"
pydantic = "^1.8.2"
python-vlc = "3.0.11115"
pyobjc-core = { version = "*", platform = "darwin" }
pyobjc-framework-Cocoa = { version = "*", platform = "darwin" }
streamlink = "6.2.1"
yt-dlp = "2023.10.13"
[tool.poetry.group.dev.dependencies]
isort = "^5.8.0"
flakehell = "^0.9.0"
wemake-python-styleguide = "^0.18.0"
black = "^23.3.0"
mdformat = "0.7.7"
pre-commit = "^2.15.0"
pytest = "^7.1.2"
keepachangelog = "^1.0.0"
[tool.flakehell]
base = "https://raw.githubusercontent.com/wemake-services/wemake-python-styleguide/master/styles/flakehell.toml"
extended_default_ignore=[]
max_line_length = 88
exclude = [
"gridplayer/*_ui.py",
"gridplayer/resources_bin.py",
"gridplayer/player/__init__.py",
"tests/*.py",
"gridplayer/resources/*",
]
# Pydantic config nested class
nested_classes_whitelist=["Config"]
[tool.flakehell.plugins]
# Disabled [personal preference]
# WPS110 wrong names
# WPS111 short names
# WPS115 upper-case constant in a class - flag enums
# WPS226 String constant overuse
# WPS237 Complex f-strings
# WPS305 forbids f-strings
# WPS326 implicit line concat
# WPS336 explicit string concat
# WPS425 boolean non-keyword
# WPS428 ... <- nop statements, used in abstract classes
# WPS604 ... <- nop statements, used in abstract classes
# WPS437 protected attribute usage
# WPS601 shadowed class attribute, doesn't work for dataclasses
# Qt setAttribute functions
# Docstings, don't have any
# !! Enable later and refactor
# WPS201 too many imports
# WPS214 too many methods
# Exceptions [false positives & formatting]
# WPS317 incorrect multi-line parameters <- black formatting
# C812 trailing comma <- handled by black
# E203 whitespace before : <- handled by black
# W503 Line break occurred before a binary operator
# Bandit
# S404 subprocess module
# E800 TEMPORARILY DISABLE COMMENTED CODE
#flake8-eradicate = ["+*", "-E800"]
pycodestyle = ["+*", "-E203", "-W503"]
flake8-bandit = ["+*", "-S404"]
flake8-commas = ["+*", "-C812", "-C815"]
flake8-quotes = ["+*", "-Q000"]
flake8-rst-docstrings = ["-*"]
flake8-docstrings = ["-*"]
flake8-darglint = ["-*"]
wemake-python-styleguide = ["+*", "-WPS110", "-WPS111", "-WPS115", "-WPS201", "-WPS214", "-WPS226", "-WPS237", "-WPS305", "-WPS317", "-WPS326", "-WPS336", "-WPS425", "-WPS428", "-WPS437", "-WPS601", "-WPS604"]
[tool.flakehell.exceptions."gridplayer/version.py"]
# I like it this way
wemake-python-styleguide = ["-WPS410"]
[tool.flakehell.exceptions."gridplayer/utils/"]
# Crossplatform functions
# WPS110 Wrong names
# WPS339 0x0000 values
# WPS433 Nested imports
# WPS440 Protected modules
wemake-python-styleguide = ["+*", "-WPS110", "-WPS339", "-WPS433", "-WPS440"]
[tool.flakehell.exceptions."gridplayer/widgets/video_overlay_icons.py"]
# Manually drawn icons, need to do something about them later
# WPS204 overused expression
# WPS213 too many expressions
# WPS221 Jones Complexity
# WPS432 magic numbers
wemake-python-styleguide = ["+*", "-WPS204", "-WPS213", "-WPS221", "-WPS432"]
[tool.flakehell.exceptions."gridplayer/dialogs/messagebox.py"]
# Overriding Qt class
# WPS211 too many arguments
# WPS404 complex defaults
wemake-python-styleguide = ["+*", "-WPS211", "-WPS404"]
[tool.flakehell.exceptions."gridplayer/params/static.py"]
# WPS202 too many modules
wemake-python-styleguide = ["+*", "-WPS202"]
[tool.flakehell.exceptions."gridplayer/params/languages.py"]
# WPS432 magic numbers - completion %
wemake-python-styleguide = ["+*", "-WPS432"]
[tool.flakehell.exceptions."gridplayer/params/actions.py"]
# WPS204 overused expression
# translate
wemake-python-styleguide = ["+*", "-WPS204"]
[tool.flakehell.exceptions."gridplayer/__main__.py"]
# WPS433 nested imports
wemake-python-styleguide = ["+*", "-WPS433"]
[tool.black]
line-length = 88
exclude = '(.*\/resources_bin\.py)'
[tool.isort]
profile = "black"
skip_gitignore = true