Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartins committed Jun 24, 2024
1 parent 5f84668 commit 56be8bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions cpm/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import re


def parse_csv_dir(dir_path: str, pattern: str = None, delimiter: str = 'auto',
def parse_csv_dir(dir_path: str, pattern: str = None, delimiter: str = 'auto',
encoding: str = 'utf-8', instigator: str = 'column') -> list[DSM]:
"""
Parse a directory of CSVs. A pattern for what the filename needs to include can be used
as an inclusivity-filter.
:param path:
:param dir_path:
:param pattern:
:param delimiter:
:param encoding:
Expand All @@ -26,8 +26,7 @@ def parse_csv_dir(dir_path: str, pattern: str = None, delimiter: str = 'auto',
if p and p.match(filename) is None:
continue
filepath = dir_path + '/' + filename
print(filepath)
dsm_array.append(parse_csv(filepath))
dsm_array.append(parse_csv(filepath, delimiter=delimiter, encoding=encoding, instigator=instigator))

return dsm_array

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = '1.0.7'
VERSION = '1.0.8'
DESCRIPTION = 'Tool for calculating risk of change propagation in a system.'

with open("README.md", "r") as fh:
Expand Down

0 comments on commit 56be8bc

Please sign in to comment.