Skip to content

Commit

Permalink
♻️ Replace flake8 with ruff in Sublime
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Dec 15, 2023
1 parent 977d235 commit 6582ff0
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ eval "$(pyenv virtualenv-init -)"
export PROMPT_COMMAND='_pyenv_virtualenv_hook;_direnv_hook;history -a;history -c;history -r'
export PYENV_VIRTUALENV_DISABLE_PROMPT=1

pyenv activate vv
pyenv activate vv311


# exports
Expand Down Expand Up @@ -77,7 +77,7 @@ alias sm='smerge'
alias xdg-open='open'
alias pyenvls='pyenv virtualenvs | grep --invert-match "/envs/"'
alias i="
python -c 'import autotime, ipdb, pandas, rich' || pip install ipython-autotime ipdb pandas rich
python -c 'import autotime, ipdb, pandas, rich' || pip install -U ipython-autotime ipdb pandas rich ipython
ipython -i -c '
# just make sure to use escaped double quotes
Expand All @@ -89,7 +89,7 @@ from rich import pretty, print
pretty.install()
# set to WARNING by default
logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.INFO, format=\"%(asctime)s:%(levelname)-7s %(filename)20s:%(lineno)-4d %(name)s:%(message)s\")
logger = logging.getLogger(__name__)
# hotreload imports on each prompt
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ Note: first open Chrome for the first time
- Use built-in keychain and app password from above, and add a Mac specific global gitignore:
```bash
git config --global user.name "ddelange"
git config --global user.email "[email protected]"
git config --global user.email "14880945+[email protected]" # fetch this from https://github.com/settings/emails
git config --global credential.helper osxkeychain

# EITHER
Expand Down
2 changes: 1 addition & 1 deletion com.googlecode.iterm2.plist
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ Maximize Active Pane</string>
<key>Non-ASCII Anti Aliased</key>
<true/>
<key>Normal Font</key>
<string>InconsolataLGCNerdFontComplete-Regular 9</string>
<string>InconsolataLGCNF 9</string>
<key>Option Key Sends</key>
<integer>0</integer>
<key>Prompt Before Closing 2</key>
Expand Down
2 changes: 1 addition & 1 deletion htoprc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
htop_version=3.1.2
config_reader_min_version=2
fields=0 48 17 18 38 39 2 46 47 49 1
sort_key=46
sort_key=39
sort_direction=-1
tree_sort_key=46
tree_sort_direction=-1
Expand Down
10 changes: 10 additions & 0 deletions sublime_text_user_settings/Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
[
{
"keys": ["primary+alt+p"],
"command": "lsp_code_actions",
"context": [{"key": "lsp.session_with_capability", "operand": "codeActionProvider"}]
},
{
"keys": ["primary+alt+o"],
"command": "lsp_format_document",
"context": [{"key": "lsp.session_with_capability", "operand": "documentFormattingProvider | documentRangeFormattingProvider"}]
},
]
4 changes: 2 additions & 2 deletions sublime_text_user_settings/Markdown.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"extensions":
[
"md"
"md",
],
"mde.list_indent_bullets":
[
"-"
],
"color_scheme": "Packages/MarkdownEditing/MarkdownEditor.tmTheme",
/*"color_scheme": "MarkdownEditor.sublime-color-scheme",*/
"draw_centered": false,
"word_wrap": false,
}
11 changes: 6 additions & 5 deletions sublime_text_user_settings/Package Control.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"ayu",
"Babel",
"BracketHighlighter",
"Diffy",
"Diffable",
"Dockerfile Syntax Highlighting",
"FindKeyConflicts",
"Github Color Theme",
Expand All @@ -21,17 +21,18 @@
"LaTeXing",
"LaTeXTab",
"LaTeXTools",
"LSP",
"LSP-ruff",
"MarkdownEditing",
"MarkdownTOC",
"Neon Color Scheme",
"Package Control",
"Python Improved",
"SideBarEnhancements",
"sublack",
"SublimeLinter",
"SublimeLinter-chktex",
"SublimeLinter-eslint",
"SublimeLinter-flake8",
"SublimeLinter-pycodestyle"
]
"Terraform",
"TOML",
],
}
21 changes: 12 additions & 9 deletions sublime_text_user_settings/Preferences.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@
"scikit",
"Max"
],
"always_prompt_for_file_reload": true,
"always_prompt_for_file_reload": false,
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
"selector": "text.html",
},
{
"characters": "\\",
"selector": "text.tex.latex"
"selector": "text.tex.latex",
}
],
"auto_indent": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",
"draw_indent_guides": true,
"ensure_newline_at_eof_on_save": true,
Expand All @@ -62,14 +62,13 @@
".mypy_cache"
],
"font_options": "subpixel_antialias",
"font_size": 10.0,
"font_size": 9,
"gitlink_revision_type": "commithash",
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Markdown",
"Vintage"
"Vintage",
],
"ignored_words":
[
Expand All @@ -86,7 +85,7 @@
],
"keymaps":
{
"show_pretty_keys": true
"show_pretty_keys": true,
},
"line_padding_bottom": 1,
"line_padding_top": 1,
Expand All @@ -104,5 +103,9 @@
"smart_indent": false,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true
"trim_trailing_white_space_on_save": true,
"theme": "Adaptive.sublime-theme",
"dark_theme": "Adaptive.sublime-theme",
"light_theme": "Default Dark.sublime-theme",
"index_files": true,
}

0 comments on commit 6582ff0

Please sign in to comment.