Skip to content

Commit

Permalink
chore: autogen metadata and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentS authored and github-actions[bot] committed Sep 17, 2023
1 parent e167203 commit 60fbdd4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
24 changes: 24 additions & 0 deletions doc/BUILTINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3577,6 +3577,30 @@ local sources = { null_ls.builtins.formatting.isort }
- Command: `isort`
- Args: `{ "--stdout", "--filename", "$FILENAME", "-" }`

### [isortd](https://github.com/urm8/isortd)

isortd is a small HTTP server that exposes isort’s functionality over a simple protocol. The main benefit of using it is to avoid the cost of starting up a new isort process every time you want to format a file.

#### Usage

```lua
local sources = { null_ls.builtins.formatting.isortd }
```

#### Defaults

- Filetypes: `{ "python" }`
- Method: `formatting`

#### Config

##### `hostname` (string)

Address that the isortd server listens on. Defaults to localhost.
##### `port` (string)

Port that the isortd server listens on. Defaults to 47393.

### [joker](https://github.com/candid82/joker)

joker is a small Clojure interpreter, linter and formatter written in Go.
Expand Down
2 changes: 1 addition & 1 deletion lua/null-ls/builtins/_meta/filetype_map.lua
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ return {
python = {
code_actions = { "refactoring" },
diagnostics = { "flake8", "mypy", "pycodestyle", "pydocstyle", "pylama", "pylint", "pyproject_flake8", "ruff", "semgrep", "vulture" },
formatting = { "autoflake", "autopep8", "black", "blackd", "blue", "docformatter", "isort", "pyflyby", "pyink", "reorder_python_imports", "ruff", "usort", "yapf" }
formatting = { "autoflake", "autopep8", "black", "blackd", "blue", "docformatter", "isort", "isortd", "pyflyby", "pyink", "reorder_python_imports", "ruff", "usort", "yapf" }
},
qml = {
diagnostics = { "qmllint" },
Expand Down
3 changes: 3 additions & 0 deletions lua/null-ls/builtins/_meta/formatting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ return {
isort = {
filetypes = { "python" }
},
isortd = {
filetypes = { "python" }
},
joker = {
filetypes = { "clj" }
},
Expand Down

0 comments on commit 60fbdd4

Please sign in to comment.