Skip to content

Commit

Permalink
ci/lint: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Sep 6, 2024
1 parent c46a5eb commit fb189f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 31 deletions.
28 changes: 3 additions & 25 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ repos:
- id: check-docstring-first
- id: detect-private-key

- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
name: Upgrade code

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
Expand All @@ -42,36 +35,21 @@ repos:
additional_dependencies: [tomli]
args: ["--in-place"]

- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
name: Black code

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
args: ["--number"]
additional_dependencies:
- mdformat-gfm
- mdformat-black
- mdformat_frontmatter
exclude: CHANGELOG.md

- repo: https://github.com/asottile/yesqa
rev: v1.5.0
hooks:
- id: yesqa
additional_dependencies:
- pep8-naming
- pydocstyle
#- flake8-comprehensions
#- flake8-pytest-style
#- flake8-return
#- flake8-simplify

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
args: ["--fix"]
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ wrap-descriptions = 120
blank = true


[tool.black]
# https://github.com/psf/black
line-length = 120
exclude = "(.eggs|.git|.hg|.mypy_cache|.venv|_build|buck-out|build|dist)"


[tool.mypy]
files = [
"src",
Expand All @@ -81,6 +75,7 @@ warn_no_return = false


[tool.ruff]
target-version = "py38"
line-length = 120

[tool.ruff.lint]
Expand All @@ -96,6 +91,8 @@ extend-select = [
"PT", # see: https://pypi.org/project/flake8-pytest-style
"RET", # see: https://pypi.org/project/flake8-return
"SIM", # see: https://pypi.org/project/flake8-simplify
"UP", # pyupgrade
"RUF100", # yesqa
]
ignore = [
"E731", # Do not assign a lambda expression, use a def
Expand Down

0 comments on commit fb189f5

Please sign in to comment.