-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: wrap Sphinx style long parameter descriptions (#201)
* feat: add new --style argument * test: for new --style argument * doc: for new --style argument * fix: long description before list not wrapping * Merge branch `master` * Merge branch release/v1.7.0 * fix: not finding literal blocks * chore: add pre-commit-config.yaml * chore: add pre-commit-config.yaml * refactor: change FIELD_REGEX to SPHINX_REGEX
- Loading branch information
1 parent
6e06c6a
commit cb7bf8d
Showing
12 changed files
with
738 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-docstring-first | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: no-commit-to-branch | ||
- id: trailing-whitespace | ||
- repo: https://github.com/psf/black | ||
rev: '23.3.0' | ||
hooks: | ||
- id: black | ||
types_or: [python, pyi] | ||
language_version: python3 | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: [--settings-file, ./pyproject.toml] | ||
- repo: https://github.com/PyCQA/docformatter | ||
rev: v1.6.5 | ||
hooks: | ||
- id: docformatter | ||
additional_dependencies: [tomli] | ||
args: [--in-place, --config, ./pyproject.toml] | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: 'v0.0.267' | ||
hooks: | ||
- id: ruff | ||
args: [ --select, "PL", --select, "F" ] | ||
- repo: https://github.com/pycqa/pydocstyle | ||
rev: 6.3.0 | ||
hooks: | ||
- id: pydocstyle | ||
additional_dependencies: [toml] | ||
args: [--config, ./pyproject.toml] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.3.0 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: [types-python-dateutil] | ||
args: [--config-file, ./pyproject.toml] | ||
- repo: https://github.com/myint/eradicate | ||
rev: '2.2.0' | ||
hooks: | ||
- id: eradicate | ||
args: [] | ||
- repo: https://github.com/rstcheck/rstcheck | ||
rev: 'v6.1.2' | ||
hooks: | ||
- id: rstcheck | ||
additional_dependencies: [tomli] | ||
args: [-r, --config, ./pyproject.toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.