Skip to content

Commit

Permalink
chore: Auto generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mochaaP authored and github-actions[bot] committed Jan 17, 2025
1 parent b93e44d commit af31821
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 19 deletions.
34 changes: 17 additions & 17 deletions doc/BUILTINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1010,23 +1010,6 @@ local sources = { null_ls.builtins.diagnostics.mypy }
- Command: `mypy`
- Args: dynamically resolved (see [source](https://github.com/nvimtools/none-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/mypy.lua))

### [pydoclint](https://jsh9.github.io/pydoclint/)

Pydoclint is a Python docstring linter to check whether a docstring's sections (arguments, returns, raises, ...) match the function signature or function implementation.
Usage

```lua
local sources = { null_ls.builtins.diagnostics.pydoclint }
```

#### Defaults

- Filetypes: `{ "python" }`
- Method: `diagnostics`
- Command: `pydoclint`
- Args: dynamically resolved (see source)


### [npm_groovy_lint](https://github.com/nvuillam/npm-groovy-lint)

Lint, format and auto-fix Groovy, Jenkinsfile, and Gradle files.
Expand Down Expand Up @@ -1221,6 +1204,23 @@ local sources = { null_ls.builtins.diagnostics.puppet_lint }
- Command: `puppet-lint`
- Args: `{ "--json", "$FILENAME" }`

### [pydoclint](https://github.com/jsh9/pydoclint)

Pydoclint is a Python docstring linter to check whether a docstring's sections (arguments, returns, raises, ...) match the function signature or function implementation. To see all violation codes go to [pydoclint](https://jsh9.github.io/pydoclint/violation_codes.html)

#### Usage

```lua
local sources = { null_ls.builtins.diagnostics.pydoclint }
```

#### Defaults

- Filetypes: `{ "python" }`
- Method: `diagnostics`
- Command: `pydoclint`
- Args: `{ "--show-filenames-in-every-violation-message=true", "-q", "$FILENAME" }`

### [pylint](https://github.com/PyCQA/pylint)

Pylint is a Python static code analysis tool which looks for programming
Expand Down
5 changes: 5 additions & 0 deletions doc/builtins.json
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@
"epuppet"
]
},
"pydoclint": {
"filetypes": [
"python"
]
},
"pylint": {
"filetypes": [
"python"
Expand Down
2 changes: 1 addition & 1 deletion doc/null-ls.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*null-ls.txt* Last change: 2025 January 15
*null-ls.txt* Last change: 2025 January 17

==============================================================================
Table of Contents *null-ls-table-of-contents*
Expand Down
3 changes: 3 additions & 0 deletions lua/null-ls/builtins/_meta/diagnostics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ return {
puppet_lint = {
filetypes = { "puppet", "epuppet" }
},
pydoclint = {
filetypes = { "python" }
},
pylint = {
filetypes = { "python" }
},
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 @@ -340,7 +340,7 @@ return {
},
python = {
code_actions = { "refactoring" },
diagnostics = { "mypy", "pylint", "semgrep" },
diagnostics = { "mypy", "pydoclint", "pylint", "semgrep" },
formatting = { "black", "blackd", "isort", "isortd", "pyink", "usort", "yapf" }
},
qml = {
Expand Down

0 comments on commit af31821

Please sign in to comment.