mirror of
https://github.com/ColinDuquesnoy/QDarkStyleSheet.git
synced 2026-08-29 08:34:30 +08:00
Add ruff config
This commit is contained in:
@@ -239,13 +239,13 @@ def _load_stylesheet(qt_api='', palette=None):
|
||||
|
||||
# Then we import resources - binary qrc content
|
||||
if palette is None:
|
||||
from qdarkstyle.dark import darkstyle_rc
|
||||
from qdarkstyle.dark import darkstyle_rc # noqa
|
||||
palette = DarkPalette
|
||||
elif palette.ID == 'dark':
|
||||
from qdarkstyle.dark import darkstyle_rc
|
||||
from qdarkstyle.dark import darkstyle_rc # noqa
|
||||
palette = DarkPalette
|
||||
elif palette.ID == 'light':
|
||||
from qdarkstyle.light import lightstyle_rc
|
||||
from qdarkstyle.light import lightstyle_rc # noqa
|
||||
palette = LightPalette
|
||||
else:
|
||||
print("Not recognized ID for palette! Exiting!")
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
ignore = ["D107", "D202", "D203", "D213", "D406", "D407", "D413"]
|
||||
exclude = [
|
||||
".bzr",
|
||||
".direnv",
|
||||
".eggs",
|
||||
".git",
|
||||
".git-rewrite",
|
||||
".hg",
|
||||
".mypy_cache",
|
||||
".nox",
|
||||
".pants.d",
|
||||
".pytype",
|
||||
".ruff_cache",
|
||||
".svn",
|
||||
".tox",
|
||||
".venv",
|
||||
"__pypackages__",
|
||||
"_build",
|
||||
"buck-out",
|
||||
"build",
|
||||
"dist",
|
||||
"node_modules",
|
||||
"venv",
|
||||
]
|
||||
respect-gitignore = true
|
||||
line-length = 79
|
||||
target-version = "py38"
|
||||
Reference in New Issue
Block a user