Skip to content

Commit ea79bf5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1ebd5d9 commit ea79bf5

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

git_aggregator/command.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# -*- coding: utf-8 -*-
21
# © 2015 ACSONE SA/NV
32
# Copyright 2023 Michael Tietz (MT Software) <[email protected]>
43
# License AGPLv3 (http://www.gnu.org/licenses/agpl-3.0-standalone.html)
54
# Parts of the code comes from ANYBOX
65
# https://github.com/anybox/anybox.recipe.odoo
7-
import subprocess
86
import logging
7+
import subprocess
8+
99
from ._compat import console_to_str
10+
1011
logger = logging.getLogger(__name__)
1112

1213

13-
class CommandExecutor(object):
14+
class CommandExecutor:
1415
def __init__(self, cwd):
1516
self.cwd = cwd
1617

git_aggregator/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from .exception import ConfigException
1212
from .patch import Patches
1313

14-
1514
log = logging.getLogger(__name__)
1615

1716

git_aggregator/patch.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2023 Michael Tietz (MT Software) <[email protected]>
32
# License AGPLv3 (http://www.gnu.org/licenses/agpl-3.0-standalone.html)
43
import logging
5-
from pathlib import Path
64
import subprocess
5+
from pathlib import Path
76

87
from .command import CommandExecutor
98

@@ -24,7 +23,7 @@ def retrive_data(self):
2423
path = self.path
2524
if self.is_local:
2625
patch_path = Path(path).absolute()
27-
path = "FILE:{}".format(str(patch_path))
26+
path = f"FILE:{str(patch_path)}"
2827
cmd = [
2928
"curl",
3029
path,

git_aggregator/repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
import requests
1111

1212
from ._compat import console_to_str
13-
from .exception import DirtyException, GitAggregatorException
1413
from .command import CommandExecutor
14+
from .exception import DirtyException, GitAggregatorException
1515

1616
FETCH_DEFAULTS = ("depth", "shallow-since", "shallow-exclude")
1717
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)