Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Commit 74f361d

Browse files
👷 Add formatting check for the src directory
1 parent 5f053c9 commit 74f361d

File tree

5 files changed

+97
-3
lines changed

5 files changed

+97
-3
lines changed

.github/workflows/formatting.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
run: |
2727
pip install black
2828
- name: Check files formatting
29-
run: black --check tests
29+
run: black --check src tests

poetry.lock

+91-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ protostar = {git = "https://github.com/software-mansion/protostar.git", tag = "v
1313
pyinstaller = "ˆ5.0.1"
1414
pytest = "^7.1.2"
1515
python = ">=3.8 <3.9"
16+
black = "^22.3.0"
1617

1718
[tool.poetry.dev-dependencies]
1819
GitPython = "^3.1.27"

src/utils/starklings_directory.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
import tomli
66
from logging import getLogger
77

8+
89
class StarklingsDirectory:
910
def __init__(self, binary_dir_path: Path):
1011
self._binary_dir_path = binary_dir_path
11-
12+
1213
@property
1314
def binary_dir_path(self) -> Path:
1415
return self._binary_dir_path
@@ -17,6 +18,7 @@ def binary_dir_path(self) -> Path:
1718
def root_dir_path(self) -> Path:
1819
return self._binary_dir_path / ".." / ".."
1920

21+
2022
class VersionManager:
2123
@staticmethod
2224
def parse(version_str: str) -> PackagingVersion:

src/utils/starklings_directory_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def test_directory_root_path(script_root: Path):
2121

2222
assert starklings_directory.root_dir_path == script_root / ".." / ".."
2323

24+
2425
def test_version_manager():
2526
starklings_directory = StarklingsDirectory(Path(__file__).parent)
2627
version_manager = VersionManager(starklings_directory)

0 commit comments

Comments
 (0)