Skip to content

Commit

Permalink
Merge pull request #64 from acsone/pre-commit-autoupdate
Browse files Browse the repository at this point in the history
Upgrade linters
  • Loading branch information
sbidoul authored May 2, 2024
2 parents faca740 + 66a14d9 commit 27f2939
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.3
rev: v0.4.2
hooks:
- id: ruff
args: [--exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions docs/gen_cli_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Copyright (c) 2020 Sebastián Ramírez (MIT License).
"""

from pathlib import Path
from typing import cast

Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ exclude = [


[tool.ruff]
target-version = "py37"
fix = true

[tool.ruff.lint]
select = [
"B",
"E",
Expand All @@ -73,17 +76,16 @@ select = [
"UP",
"W",
]
target-version = "py37"
ignore = [
]
exclude = [
"docs/conf.py",
]

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["manifestoo", "manifestoo_core"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"src/manifestoo/main.py" = ["B008"]


Expand Down

0 comments on commit 27f2939

Please sign in to comment.