Add ruff config

This commit is contained in:
Daniel Cosmo Pizetta
2023-10-25 16:02:20 -03:00
parent f8aca53f9f
commit bce87bf816
2 changed files with 30 additions and 3 deletions
+3 -3
View File
@@ -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!")
+27
View File
@@ -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"