Skip to content

Commit

Permalink
fix: Add nodejs-wheel as a dependency (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab authored May 3, 2024
1 parent 363cf25 commit a470d28
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ sh = ">=2.0.4"
colorama = ">=0.4.6"
inquirer = ">=3.1.3"
pyyaml = ">=6.0.1"
nodejs-wheel = ">=20.12"


[tool.poetry.group.dev.dependencies]
pytest = ">=7"
Expand Down
21 changes: 10 additions & 11 deletions src/scicookie/hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,21 +284,20 @@ def clean_up_linter():
if not USE_PRE_COMMIT:
remove_project_file(".pre-commit-config.yaml")

# Auto format files with prettier
subprocess.call([
"npx",
"--yes",
"prettier",
"--write",
"--ignore-unknown",
PROJECT_DIRECTORY
])

if not USE_PRETTIER:
remove_project_file(".prettierrc.yaml")
remove_project_file(".prettierignore")

# keep this one at the end
if USE_PRETTIER:
subprocess.call([
"npx",
"--yes",
"prettier",
"--write",
"--ignore-unknown",
PROJECT_DIRECTORY
])


def prepare_git() -> None:
git_https_origin = http2ssh("{{cookiecutter.git_https_origin}}")
Expand Down

0 comments on commit a470d28

Please sign in to comment.