diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fbb5fc3..3874426 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: + - id: check-toml - id: check-yaml args: [--allow-multiple-documents] - id: end-of-file-fixer @@ -49,6 +50,14 @@ repos: types: [python] pass_filenames: false + # prettier - formatting Markdown + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v4.0.0-alpha.8 + hooks: + - id: prettier + types: [text, markdown] + exclude: ^poetry.lock + # mkdocs - build the documentation - repo: local hooks: diff --git a/pyproject.toml b/pyproject.toml index e0b0cb0..9ff2361 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,8 +85,8 @@ target-version = "py311" src = ["src", "tests"] [tool.ruff.lint] -select = ["E", "F", "W", "I"] -ignore = [] +select = ["F", "E", "W", "C90", "I", "B"] +ignore = ["E501", "C901"] [tool.ruff.format] docstring-code-format = true