Many changes · rec/dotfiles@1bb8428

16 files changed

lines changed

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'"

Original file line numberDiff line numberDiff line change

@@ -3,7 +3,7 @@ export CHOPIN=192.168.178.108

33

export DEV=rec:2223@eu.quansight.dev

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

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

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

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))