Skip to content

Commit

Permalink
chore(deps): pre-commit autoupdate (#94)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/python-jsonschema/check-jsonschema: 0.27.3 →
0.27.4](python-jsonschema/check-jsonschema@0.27.3...0.27.4)
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 →
v0.2.0](astral-sh/ruff-pre-commit@v0.1.9...v0.2.0)
- [github.com/psf/black: 23.12.1 →
24.1.1](psf/black@23.12.1...24.1.1)
- [github.com/tox-dev/pyproject-fmt: 1.5.3 →
1.7.0](tox-dev/pyproject-fmt@1.5.3...1.7.0)
- [github.com/pycqa/flake8: 6.1.0 →
7.0.0](PyCQA/flake8@6.1.0...7.0.0)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Edgar Ramírez-Mondragón <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and edgarrmondragon authored Feb 5, 2024
1 parent 7fb8eb5 commit 68c967c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 25 deletions.
4 changes: 0 additions & 4 deletions .flake8

This file was deleted.

19 changes: 6 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ ci:
autofix_prs: true
autoupdate_schedule: monthly
autoupdate_commit_msg: 'chore(deps): pre-commit autoupdate'
skip:
- check-dependabot

default_language_version:
python: python3.11
Expand All @@ -19,26 +21,22 @@ repos:
- id: check-added-large-files

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
rev: 0.27.4
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.9
rev: v0.2.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

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

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.5.3"
rev: "1.7.0"
hooks:
- id: pyproject-fmt

Expand All @@ -49,8 +47,3 @@ repos:
additional_dependencies:
- typing-extensions
- sqlalchemy[mypy]

- repo: https://github.com/pycqa/flake8
rev: 6.1.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
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Configuration."""

from __future__ import annotations

pytest_plugins = ("singer_sdk.testing.pytest_plugin",)
1 change: 1 addition & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests standard tap features using the built-in SDK tests library."""

from __future__ import annotations

import json
Expand Down

0 comments on commit 68c967c

Please sign in to comment.