Skip to content

Commit

Permalink
add lint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
kiraware committed Sep 18, 2024
1 parent 134fd7a commit f72fac7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f72fac7

Please sign in to comment.