Skip to content

Commit 1e76653

Browse files
committed
Add make format and format all code files.
1 parent 3d74e39 commit 1e76653

29 files changed

+718
-446
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,7 @@ clean-pyc:
5858
clean-build:
5959
rm -rf build dist *.egg-info .eggs
6060
find . -name '*.h' -exec rm -f {} +
61+
62+
format:
63+
$(PY3) -m poetry run isort libterraform tests
64+
$(PY3) -m poetry run ruff format libterraform tests

libterraform/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import os
2-
from ctypes import cdll, c_void_p
2+
from ctypes import c_void_p, cdll
3+
34
from libterraform.common import WINDOWS
45

5-
__version__ = '0.8.0'
6+
__version__ = "0.8.0"
67

78
root = os.path.dirname(os.path.abspath(__file__))
8-
_lib_filename = 'libterraform.dll' if WINDOWS else 'libterraform.so'
9+
_lib_filename = "libterraform.dll" if WINDOWS else "libterraform.so"
910
_lib_tf = cdll.LoadLibrary(os.path.join(root, _lib_filename))
1011

1112
_free = _lib_tf.Free
@@ -14,4 +15,4 @@
1415
from .cli import TerraformCommand
1516
from .config import TerraformConfig
1617

17-
__all__ = ['TerraformCommand', 'TerraformConfig']
18+
__all__ = ["TerraformCommand", "TerraformConfig"]

0 commit comments

Comments
 (0)