mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add isort to CI and run on files
This commit is contained in:
parent
f526cfa4d9
commit
3730e2e726
45 changed files with 112 additions and 113 deletions
|
@ -1,20 +1,21 @@
|
|||
import os, sys
|
||||
import os
|
||||
import sys
|
||||
|
||||
from pythonfuzz.main import PythonFuzz
|
||||
|
||||
from blueprintcompiler.outputs.xml import XmlOutput
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
|
||||
|
||||
from blueprintcompiler import tokenizer, parser, decompiler, gir
|
||||
from blueprintcompiler import decompiler, gir, parser, tokenizer, utils
|
||||
from blueprintcompiler.completions import complete
|
||||
from blueprintcompiler.errors import (
|
||||
PrintableError,
|
||||
MultipleErrors,
|
||||
CompileError,
|
||||
CompilerBugError,
|
||||
MultipleErrors,
|
||||
PrintableError,
|
||||
)
|
||||
from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
||||
from blueprintcompiler import utils
|
||||
|
||||
|
||||
@PythonFuzz
|
||||
|
|
|
@ -19,20 +19,19 @@
|
|||
|
||||
|
||||
import difflib # I love Python
|
||||
from pathlib import Path
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "4.0")
|
||||
from gi.repository import Gtk
|
||||
|
||||
from blueprintcompiler import tokenizer, parser, decompiler
|
||||
from blueprintcompiler import decompiler, parser, tokenizer, utils
|
||||
from blueprintcompiler.completions import complete
|
||||
from blueprintcompiler.errors import PrintableError, MultipleErrors, CompileError
|
||||
from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
||||
from blueprintcompiler import utils
|
||||
from blueprintcompiler.errors import CompileError, MultipleErrors, PrintableError
|
||||
from blueprintcompiler.outputs.xml import XmlOutput
|
||||
from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
||||
|
||||
|
||||
class TestSamples(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue