clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

adding ruff

sspaeti 15739d2e 1d27f1b3

+32 -4
+2 -1
Brewfile
··· 104 104 brew "webp" 105 105 brew "pillow" 106 106 brew "pipenv" 107 - brew "postgresql@14", restart_service: true 107 + brew "postgresql@14" 108 108 brew "pyenv" 109 109 brew "python@3.8" 110 110 brew "ranger" 111 111 brew "ripgrep" 112 + brew "ruff" 112 113 brew "rust" 113 114 brew "sbt" 114 115 brew "scala"
+1
backup_dotfiles.sh
··· 80 80 cp -r ~/.config/flake8 $git/general/dotfiles/linting/flake8 81 81 cp -r ~/.isort.cfg $git/general/dotfiles/linting/issort.cfg 82 82 cp -r ~/.pyproject_example.toml $git/general/dotfiles/linting/pyproject_example.toml 83 + cp -r ~/.config/ruff/pyproject.toml $git/general/dotfiles/ruff/pyproject.toml 83 84 84 85 #dbbeaver vrapper configs 85 86 cp ~/.vrapperrc $git/general/dotfiles/dbeaver/vrapperrc
+4 -1
linting/pylintrc
··· 33 33 generated-members=pyspark.* 34 34 ignored-modules=pyspark.sql.functions 35 35 36 - max-line-length = 80 36 + max-line-length = 88 37 + 38 + # Check also Ruff when migrated over, this file might not be needed anylonger? 39 + # ~/.config/ruff/pyproject.toml
+3 -2
nvim/after/plugin/lsp.lua
··· 8 8 'lua_ls', 9 9 }) 10 10 11 + 11 12 -- Fix Undefined global 'vim' 12 13 lsp.configure('lua_ls', { 13 14 settings = { ··· 109 110 -- vim.keymap.set("n", "<Leader>lt", function() vim.diagnostic.open_float() end, opts) --done with :TroubleToggle 110 111 111 112 vim.keymap.set("n", "<Leader>ln", function() vim.diagnostic.goto_next() end, opts) 112 - vim.keymap.set("n", "]n", function() vim.diagnostic.goto_next() end, opts) 113 + vim.keymap.set("n", "]d", function() vim.diagnostic.goto_next() end, opts) 113 114 vim.keymap.set("n", "<Leader>lp", function() vim.diagnostic.goto_prev() end, opts) 114 - vim.keymap.set("n", "[p", function() vim.diagnostic.goto_prev() end, opts) 115 + vim.keymap.set("n", "[d", function() vim.diagnostic.goto_prev() end, opts) 115 116 116 117 vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts) 117 118 vim.keymap.set("n", "<leader>lh", function() vim.lsp.buf.signature_help() end, opts)
+18
nvim/after/plugin/ruff.lua
··· 1 + -- Configure `ruff-lsp`. 2 + -- See: https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ruff_lsp 3 + -- For the default config, along with instructions on how to customize the settings 4 + 5 + local on_attach = function(client, bufnr) 6 + -- Disable hover in favor of Pyright 7 + client.server_capabilities.hoverProvider = false 8 + end 9 + 10 + require('lspconfig').ruff_lsp.setup { 11 + on_attach = on_attach, 12 + init_options = { 13 + settings = { 14 + -- Any extra CLI arguments for `ruff` go here. 15 + args = {}, 16 + } 17 + } 18 + }
+4
ruff/pyproject.toml
··· 1 + [tool.ruff] 2 + # select = ["E", "F", "B", "W", "Q"] 3 + # fix = true 4 + line-length = 88