Skip to content

Commit

Permalink
Remove cookiecutter functions
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed May 4, 2024
1 parent 83811a4 commit 2c2c176
Show file tree
Hide file tree
Showing 20 changed files with 11 additions and 317 deletions.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ repos:
'--ignore-words=.pre-commit/codespell_words',
'--exclude-file=.pre-commit/codespellignorelines',
'--skip=.github/.cspell/*.txt']
# - repo: https://github.com/streetsidesoftware/cspell-cli
# rev: v6.2.0
# hooks:
# - id: cspell
# Lua
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v0.20.0
hooks:
Expand All @@ -80,6 +85,11 @@ repos:
rev: 6f36260b537bf9a42b6ea5262c915ae50786296e
hooks:
- id: format-xmllint
# C++
# - repo: https://github.com/pre-commit/mirrors-clang-format
# rev: v15.0.7
# hooks:
# - id: clang-format
# Shell
# - repo: https://github.com/koalaman/shellcheck-precommit
# rev: v0.9.0
Expand Down
23 changes: 0 additions & 23 deletions cookiecutter/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions cookiecutter/clang-tidy-format/cookiecutter.json

This file was deleted.

22 changes: 0 additions & 22 deletions cookiecutter/clang-tidy-format/hooks/post_gen_project.py

This file was deleted.

3 changes: 0 additions & 3 deletions cookiecutter/file-generator/cookiecutter.json

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions cookiecutter/pre-commit-hooks/cookiecutter.json

This file was deleted.

10 changes: 0 additions & 10 deletions cookiecutter/pre-commit-hooks/hooks/post_gen_project.py

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.
Empty file.
Empty file.

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -265,23 +265,6 @@ function kill-all
end
end

function cookiecutter-file
set -l template_directory $HOME/myconfigs/cookiecutter/
set -l template_name (fd --type directory --full-path $template_directory --maxdepth 1 --base-directory=$template_directory --strip-cwd-prefix --exclude 'file-generator' |
sed 's#/##g'|
fzf --preview='')
if test (count $template_name) -eq 1
set -l temporary_directory (mktemp -d -p /tmp cookiecutter-XXXXX)
micromamba run -n myconfigs cookiecutter $template_directory/$template_name --output-dir $temporary_directory project_name=$template_name
fd --hidden --max-depth 1 --glob '*' $temporary_directory --exec mv {} .
end
end

function cookiecutter-file-template
set -l template_directory $HOME/myconfigs/cookiecutter/
micromamba run -n myconfigs $template_directory/file-generator
end

function restart-zerotier-one
sudo systemctl stop zerotier-one.service && sudo systemctl start zerotier-one.service
end
Expand Down
2 changes: 1 addition & 1 deletion ruff/.config/ruff/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ ignore = ["E501"]
# ANN003: missing-type-kwargs
# TCH003: typing-only-standard-library-import
extend-ignore = ["TCH003", "ANN002", "ANN003", "ANN101", "G004"]
exclude = ["cookiecutter", "python"]
exclude = ["python"]
target-version = "py311"
[tool.ruff.pydocstyle]
convention = "google"

0 comments on commit 2c2c176

Please sign in to comment.