Skip to content

Commit

Permalink
Merge pull request #10 from rfrezino/add-support-form-toml
Browse files Browse the repository at this point in the history
Fix problem with windows and absolute path check
  • Loading branch information
rfrezino authored Jan 31, 2022
2 parents 6489de3 + f7644db commit 1fbd7a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ on:

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9"]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Ubuntu
run: sudo apt-get install -y graphviz
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hexagonal-py"
version = "0.1.3"
version = "0.1.4"
description = """Hexagonal Coherence Check"""
readme = 'README.md'
authors = ["rfrezino <rodrigofrezino@gmail.com>"]
Expand Down
2 changes: 1 addition & 1 deletion src/hexagonal/services/raw_python_project_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def source_folder_full_path(self):

def __init__(self, source_folder_full_path: str, hexagonal_composition: HexagonalComposition,
excluded_folders: List[str]):
if not source_folder_full_path.startswith('/'):
if not os.path.isabs(source_folder_full_path):
raise Exception("The param source_folder_full_path must have the source's folder full path.")

if not os.path.isdir(source_folder_full_path):
Expand Down

0 comments on commit 1fbd7a1

Please sign in to comment.