test/isort: apply diff to full tree
Apply the isort modifications to the entire source tree, not just the selected python files of test-src. Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
This commit is contained in:
parent
5aaa4e602e
commit
4b09088661
14 changed files with 6 additions and 24 deletions
|
|
@ -20,14 +20,11 @@ documentation for `osbuil.util.udev.UdevInhibitor`.
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
|
||||||
from osbuild import devices
|
from osbuild import devices, loop
|
||||||
from osbuild import loop
|
|
||||||
from osbuild.util.udev import UdevInhibitor
|
from osbuild.util.udev import UdevInhibitor
|
||||||
|
|
||||||
|
|
||||||
SCHEMA = """
|
SCHEMA = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["filename"],
|
"required": ["filename"],
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,11 @@ import stat
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from typing import Dict, Optional
|
from typing import Dict, Optional
|
||||||
|
|
||||||
from osbuild import devices
|
from osbuild import devices
|
||||||
from osbuild.util.udev import UdevInhibitor
|
from osbuild.util.udev import UdevInhibitor
|
||||||
|
|
||||||
|
|
||||||
SCHEMA = """
|
SCHEMA = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["passphrase"],
|
"required": ["passphrase"],
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,10 @@ import stat
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from typing import Dict, Tuple, Union
|
from typing import Dict, Tuple, Union
|
||||||
|
|
||||||
from osbuild import devices
|
from osbuild import devices
|
||||||
|
|
||||||
|
|
||||||
SCHEMA = """
|
SCHEMA = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["volume"],
|
"required": ["volume"],
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ import sys
|
||||||
|
|
||||||
from osbuild import inputs
|
from osbuild import inputs
|
||||||
|
|
||||||
|
|
||||||
SCHEMA = r"""
|
SCHEMA = r"""
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"source-options": {
|
"source-options": {
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ import sys
|
||||||
|
|
||||||
from osbuild import inputs
|
from osbuild import inputs
|
||||||
|
|
||||||
|
|
||||||
SCHEMA = r"""
|
SCHEMA = r"""
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,13 @@ contain `ref` it was specified.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import json
|
import json
|
||||||
import sys
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
from osbuild import inputs
|
from osbuild import inputs
|
||||||
|
|
||||||
|
|
||||||
SCHEMA = """
|
SCHEMA = """
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"options": {
|
"options": {
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,13 @@ Internally uses `ostree checkout`
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import json
|
import json
|
||||||
import sys
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
from osbuild import inputs
|
from osbuild import inputs
|
||||||
|
|
||||||
|
|
||||||
SCHEMA = """
|
SCHEMA = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["type", "origin", "references"],
|
"required": ["type", "origin", "references"],
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ import sys
|
||||||
|
|
||||||
from osbuild import inputs
|
from osbuild import inputs
|
||||||
|
|
||||||
|
|
||||||
SCHEMA = """
|
SCHEMA = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["type", "origin", "references"],
|
"required": ["type", "origin", "references"],
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ from typing import Dict
|
||||||
|
|
||||||
from osbuild import mounts
|
from osbuild import mounts
|
||||||
|
|
||||||
|
|
||||||
SCHEMA_2 = """
|
SCHEMA_2 = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["name", "type", "source", "target"],
|
"required": ["name", "type", "source", "target"],
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ from typing import Dict
|
||||||
|
|
||||||
from osbuild import mounts
|
from osbuild import mounts
|
||||||
|
|
||||||
|
|
||||||
SCHEMA_2 = """
|
SCHEMA_2 = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["name", "type", "source", "target"],
|
"required": ["name", "type", "source", "target"],
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ from typing import Dict
|
||||||
|
|
||||||
from osbuild import mounts
|
from osbuild import mounts
|
||||||
|
|
||||||
|
|
||||||
SCHEMA_2 = """
|
SCHEMA_2 = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["name", "type", "source", "target"],
|
"required": ["name", "type", "source", "target"],
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ from typing import Dict
|
||||||
|
|
||||||
from osbuild import mounts
|
from osbuild import mounts
|
||||||
|
|
||||||
|
|
||||||
SCHEMA_2 = """
|
SCHEMA_2 = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["name", "type", "source", "target"],
|
"required": ["name", "type", "source", "target"],
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,13 @@ Host commands used: mount
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
|
||||||
from osbuild import mounts
|
from osbuild import mounts
|
||||||
from osbuild.util import ostree
|
from osbuild.util import ostree
|
||||||
|
|
||||||
|
|
||||||
SCHEMA_2 = """
|
SCHEMA_2 = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["name", "type"],
|
"required": ["name", "type"],
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ from typing import Dict
|
||||||
|
|
||||||
from osbuild import mounts
|
from osbuild import mounts
|
||||||
|
|
||||||
|
|
||||||
SCHEMA_2 = """
|
SCHEMA_2 = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["name", "type", "source", "target"],
|
"required": ["name", "type", "source", "target"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue