Skip to content

Commit

Permalink
chore: Remove redundant pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Feb 5, 2024
1 parent 4aad275 commit 02a2e75
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
4 changes: 0 additions & 4 deletions .flake8

This file was deleted.

11 changes: 1 addition & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ repos:
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black
- id: ruff-format

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.7.0"
Expand All @@ -49,8 +45,3 @@ repos:
additional_dependencies:
- typing-extensions
- sqlalchemy[mypy]

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ python_version = "3.9"
warn_unused_configs = true

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

[tool.ruff.lint]
select = [
"F",
"W",
Expand Down Expand Up @@ -86,28 +90,26 @@ ignore = [
unfixable = [
"ERA", # commented-out-code
]
line-length = 88
target-version = "py37"

[tool.ruff.flake8-import-conventions]
[tool.ruff.lint.flake8-import-conventions]
banned-from = ["typing"]

[tool.ruff.flake8-import-conventions.extend-aliases]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"typing" = "t"

[tool.ruff.isort]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core==1.6.*",
"poetry-core==1.9",
]

[tool.poetry.scripts]
Expand Down

0 comments on commit 02a2e75

Please sign in to comment.