Skip to content

Commit 1bb8428

Browse files
committed
Many changes
1 parent 060af4c commit 1bb8428

File tree

16 files changed

+10479
-10716
lines changed

16 files changed

+10479
-10716
lines changed

‎bash/aliases.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ alias lrp='quiet lintrunner init && lintrunner -a --take=PYREFLY | python ~/code
3030
alias lrr='quiet lintrunner init && lintrunner --take=MYPY,RUFF -a | python ~/code/test/python/fix_lint.py | tee lint.grep'
3131
alias lsd='ls -d ~/git*'
3232

33-
alias multi="d $CODE_ROOT/multi/.direnv/python-3.11/bin/python -m multi"
33+
# alias multi="d $CODE_ROOT/multi/.direnv/python-3.11/bin/python -m multi"
3434
alias mkdocs="$CODE_ROOT/multi/.direnv/python-3.11.1/bin/mkdocs"
3535

3636
alias pcit="python -c 'import torch'"

‎bash/environment-variables.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export CHOPIN=192.168.178.108
33
export DEV=rec:[email protected]
44
export DIRENV_LOG_FORMAT=
55
export DYLD_LIBRARY_PATH=/opt/homebrew/lib
6-
export EDITOR=emacs
6+
export EDITOR=emacsclient
77
export HISTFILESIZE=100000000
88
export HISTSIZE=100000
99
export LANG=en_US.UTF-8

‎bin/python_startup.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
from __future__ import annotations
2+
try:
3+
import numpy as np
4+
except Exception:
5+
pass
26
from pathlib import Path
37
import re
48
import itertools

‎bin/tests‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eux
55
NO_COLOR=1
66
project=$(basename $(pwd))
77

8-
ruff check --select I --fix $project test* | sed 's/ --> //g'
8+
ruff check $@ $project --select I test* | sed 's/ --> //g'
99
ruff format
10-
pyrefly check $project | sed 's/ --> //g'
11-
pytest
10+
pytest -vvvvv
11+
ty check

‎dotfiles/.emacs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,16 @@
5858
'(compile-command "NO_COLOR=1 d run-tests")
5959
'(cursor-type 'box)
6060
'(delete-selection-mode t)
61+
'(desktop-save-mode t)
6162
'(dirtrack-list '("^.*@.*:\\(.*\\)\\$" 1))
6263
'(etags-table-search-up-depth 10)
6364
'(explicit-shell-file-name "/bin/bash")
6465
'(fill-column 88)
66+
'(global-auto-revert-mode t)
6567
'(global-mark-ring-max 256)
6668
'(global-whitespace-mode nil)
6769
'(grep-command
68-
"egrep -nHIR * --include \\*.py --include \\*.pyi --include \\*.pyi.in --include \\*.h --include \\*.cpp --include \\*.c --include \\*.cu --include \\*.yaml --include \\*.yml --exclude-dir torch/include --exclude-dir third_party --exclude-dir=build -we ")
70+
"egrep -nHIR * --exclude-dir=build --exclude-dir=.venv -we ")
6971
'(grep-find-command
7072
'("find . -type f -exec egrep --exclude-dir={build,htmlcov} -nHIR * --include \\*.py -e \\{\\} +"
7173
. 85))

‎dotfiles/.emacs.d/.emacs.desktop‎

Lines changed: 226 additions & 10 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)