Skip to content

Commit

Permalink
fix newline bug in [packages], fix content vs. path bug in E-671E
Browse files Browse the repository at this point in the history
  • Loading branch information
relleums committed Sep 18, 2023
1 parent 9581c6d commit 724356c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions black_pack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ def check_setup_py(pkg_dir):
s=setup_kwargs["packages"][1:-1]
)
for i in range(len(pkg["packages"])):
pkg["packages"][i] = pkg["packages"][i].strip(" ")
pkg["packages"][i] = pkg["packages"][i].strip("\n")
pkg["packages"][i] = pkg["packages"][i].strip(" ")
pkg["packages"][i] = pkg["packages"][i].strip('"')
except:
Expand Down Expand Up @@ -957,9 +959,10 @@ def check_github_workflows_test(test_yml):
def check_github_workflows_release(release_yml):
res_dir = pkg_resources.resource_filename("black_pack", "resources")

expected_release_yml = read_yml(
path=os.path.join(res_dir, "github_workflows_release.yml")
expected_release_yml_path = os.path.join(
res_dir, "github_workflows_release.yml"
)
expected_release_yml = read_yml(path=expected_release_yml_path)

diff = dictdiffer.diff(first=expected_release_yml, second=release_yml)
diffs = [dd for dd in diff]
Expand All @@ -976,7 +979,9 @@ def check_github_workflows_release(release_yml):
print(
"E-671E: "
"./.github/workflows/release.yml "
"is too different from {:s}.".format(expected_release_yml)
"is too different from the template in {:s}.".format(
expected_release_yml_path
)
)
return

Expand Down
2 changes: 1 addition & 1 deletion black_pack/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.3"
__version__ = "0.1.4"

0 comments on commit 724356c

Please sign in to comment.