Apply black/isort to Python files.

This commit is contained in:
Mikael CAPELLE
2023-07-10 09:12:34 +02:00
parent 1bffcfa8bf
commit 7108d59267
8 changed files with 24 additions and 11 deletions
+12
View File
@@ -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
+2 -1
View File
@@ -1,6 +1,7 @@
import mobase
import pytest
import mobase
m = pytest.importorskip("mobase_tests.argument_wrapper")
+2 -1
View File
@@ -1,6 +1,7 @@
import mobase
import pytest
import mobase
m = pytest.importorskip("mobase_tests.filetree")
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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()
+2 -2
View File
@@ -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]))
-1
View File
@@ -50,7 +50,6 @@ def test_qdatetime():
def test_qvariant():
# Python -> C++
assert m.qvariant_from_none(None) == (True, False)
+2 -2
View File
@@ -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):