mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Apply black/isort to Python files.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
[flake8]
|
||||
# Use black line length:
|
||||
max-line-length = 88
|
||||
extend-ignore =
|
||||
# See https://github.com/PyCQA/pycodestyle/issues/373
|
||||
E203, E266
|
||||
|
||||
[isort]
|
||||
profile = black
|
||||
multi_line_output = 3
|
||||
known_mobase = mobase
|
||||
sections=FUTURE,STDLIB,THIRDPARTY,MOBASE,FIRSTPARTY,LOCALFOLDER
|
||||
@@ -1,6 +1,7 @@
|
||||
import mobase
|
||||
import pytest
|
||||
|
||||
import mobase
|
||||
|
||||
m = pytest.importorskip("mobase_tests.argument_wrapper")
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import mobase
|
||||
import pytest
|
||||
|
||||
import mobase
|
||||
|
||||
m = pytest.importorskip("mobase_tests.filetree")
|
||||
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import mobase
|
||||
import pytest
|
||||
|
||||
import mobase
|
||||
|
||||
m = pytest.importorskip("mobase_tests.functional")
|
||||
|
||||
|
||||
def test_guessed_string():
|
||||
|
||||
# available functions:
|
||||
# - fn_0_arg, fn_1_arg, fn_2_arg
|
||||
# - fn_0_or_1_arg, fn_1_or_2_or_3_arg
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import mobase
|
||||
import pytest
|
||||
|
||||
import mobase
|
||||
|
||||
m = pytest.importorskip("mobase_tests.guessed_string")
|
||||
|
||||
|
||||
def test_guessed_string():
|
||||
|
||||
# empty string
|
||||
gs = mobase.GuessedString()
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import mobase
|
||||
import pytest
|
||||
from PyQt6.QtCore import QDir, QFileInfo
|
||||
|
||||
import mobase
|
||||
|
||||
|
||||
def test_filepath_wrappers():
|
||||
|
||||
# TBC that this works everywhere
|
||||
version = ".".join(map(str, sys.version_info[:3]))
|
||||
|
||||
|
||||
@@ -50,7 +50,6 @@ def test_qdatetime():
|
||||
|
||||
|
||||
def test_qvariant():
|
||||
|
||||
# Python -> C++
|
||||
|
||||
assert m.qvariant_from_none(None) == (True, False)
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
|
||||
import mobase
|
||||
from PyQt6.QtWidgets import QWidget
|
||||
|
||||
import mobase
|
||||
|
||||
|
||||
class DummyModDataChecker(mobase.ModDataChecker):
|
||||
def dataLooksValid(
|
||||
@@ -26,7 +27,6 @@ class DummySaveGameInfo(mobase.SaveGameInfo):
|
||||
# from the C++ side
|
||||
#
|
||||
class DummyGame(mobase.IPluginGame):
|
||||
|
||||
_features: dict[type, object]
|
||||
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user