Skip to content

Commit

Permalink
pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
TechNickAI committed Jun 20, 2024
1 parent 914c2b7 commit 997660f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
1 change: 1 addition & 0 deletions .my_mac_zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ alias randpick='jot -r 1 1'
alias agp="ag -G '.py'"
alias family_guy="find ~/Dropbox/Watch/Family\ Guy/ -type f -print0 | sort -zR | head -n 1 | xargs -0 vlc -f --play-and-exit"
alias office="find ~/Dropbox/Watch/The\ Office/ -type f -print0 | sort -zR | head -n 1 | xargs -0 vlc -f --play-and-exit"
alias interpreter=$HOME/.virtualenvs/interpreter/bin/interpreter

#### Functions
function commit_link() {
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exclude: .vim/

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-added-large-files
args: [--maxkb=500]
Expand All @@ -24,27 +24,27 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
rev: v1.5.5
hooks:
- id: remove-tabs

- repo: https://github.com/sirosen/texthooks
rev: 0.5.0
rev: 0.6.6
hooks:
- id: fix-smartquotes

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.4.2
hooks:
- id: black
args: [--line-length=120]

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.0
hooks:
- id: flake8

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.3.0
hooks:
- id: codespell
16 changes: 16 additions & 0 deletions interpreter.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/zsh

set -e

source virtualenvwrapper.sh

if [[ ! -d "$WORKON_HOME/interpreter" ]]; then
echo "Virtual environment 'interpreter' not found. Creating..."
mkvirtualenv interpreter

echo "Virtual environment 'interpreter' created successfully."
echo "Installing open-interpreter via pip"
pip install open-interpreter
else
echo "Virtual environment 'interpreter' already exists."
fi

0 comments on commit 997660f

Please sign in to comment.