Skip to content

Commit

Permalink
modify python linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sfuruya0612 committed Feb 24, 2024
1 parent cb3195d commit 99dcaf1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 52 deletions.
57 changes: 7 additions & 50 deletions roles/vim/files/coc-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
"filetypes": [
"erlang"
]
},
"ruff-lsp": {
"command": "ruff-lsp",
"filetypes": [
"python"
]
}
},
"jedi.enable": true,
Expand All @@ -44,54 +50,5 @@
"__pycache__",
"venv"
],
"snippets.ultisnips.pythonPrompt": false,
"diagnostic-languageserver.filetypes": {
"python": [
"flake8"
]
},
"diagnostic-languageserver.formatFiletypes": {
"python": [
"black"
]
},
"diagnostic-languageserver.linters": {
"flake8": {
"command": "flake8",
"debounce": 100,
"args": [
"--format=%(row)d,%(col)d,%(code).1s,%(code)s: %(text)s",
"-"
],
"offsetLine": 0,
"offsetColumn": 0,
"sourceName": "flake8",
"formatLines": 1,
"formatPattern": [
"(\\d+),(\\d+),([A-Z]),(.*)(\\r|\\n)*$",
{
"line": 1,
"column": 2,
"security": 3,
"message": 4
}
],
"securities": {
"W": "warning",
"E": "error",
"F": "error",
"C": "error",
"N": "error"
}
}
},
"diagnostic-languageserver.formatters": {
"black": {
"command": "black",
"args": [
"--quiet",
"-"
]
}
}
"snippets.ultisnips.pythonPrompt": false
}
4 changes: 2 additions & 2 deletions roles/vim/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
ansible.builtin.pip:
name: "{{ item }}"
executable: "/opt/homebrew/bin/pip3"
extra_args: "--break-system-package"
state: latest
loop:
- neovim
- pynvim
- jedi-language-server
- flake8
- black
- ruff-lsp

- name: Install neovim from yarn
community.general.yarn:
Expand Down

0 comments on commit 99dcaf1

Please sign in to comment.