Skip to content

Commit

Permalink
Feature/length ruff (#124)
Browse files Browse the repository at this point in the history
* 🔧 line-length 100

* 🎨 line length 100 script
  • Loading branch information
JoseRZapata authored Nov 26, 2024
1 parent c8e26da commit 10b9e96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions tests/test_create_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ def test_run_cookiecutter_result(cookies): # type: ignore
"""Runs cookiecutter and checks a couple of things"""
project_name = "data science project template"
repo_name = "data-science-project-template"
result = cookies.bake(
extra_context={"project_name": project_name, "repo_name": repo_name}
)
result = cookies.bake(extra_context={"project_name": project_name, "repo_name": repo_name})

assert result.exit_code == 0
assert result.exception is None
Expand All @@ -28,7 +26,4 @@ def test_cookiecutter_generated_files(cookies): # type: ignore
re_bad = re.compile(r"{{\s?cookiecutter\..*?}}")
result = cookies.bake()

assert all(
re_bad.search(str(file_path)) is None
for file_path in result.project_path.glob("*")
)
assert all(re_bad.search(str(file_path)) is None for file_path in result.project_path.glob("*"))
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/.code_quality/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exclude = [
]

#same as black
line-length = 88
line-length = 100
indent-width = 4

# Assume Python 3.10
Expand Down

0 comments on commit 10b9e96

Please sign in to comment.