Skip to content

Commit

Permalink
Merge pull request #526 from aiven/chore/simplify-pre-commit
Browse files Browse the repository at this point in the history
chore: Simplify pre-commit config

#526
  • Loading branch information
giuseppelillo committed Jan 30, 2023
2 parents a728a57 + 66dac70 commit 765ccd9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 22 deletions.
36 changes: 15 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
---
minimum_pre_commit_version: 2.9.2
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
exclude: ^vendor/|^tests/.*/fixtures/.*|^tests/integration/test_data/.*
- id: end-of-file-fixer
exclude: ^vendor/|^tests/.*/fixtures/.*|^tests/integration/test_data/.*
- id: debug-statements

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)

- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
files: \.py$
args:
- --line-length=125

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
files: \.py$
args:
- --config=.flake8

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
files: \.py$

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
Expand All @@ -31,14 +33,6 @@ repos:
name: Mypy Karapace
pass_filenames: false

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
exclude: ^vendor/|^tests/.*/fixtures/.*|^tests/integration/test_data/.*
- id: end-of-file-fixer
exclude: ^vendor/|^tests/.*/fixtures/.*|^tests/integration/test_data/.*
- id: debug-statements

# https://pre-commit.com/#repository-local-hooks
- repo: local
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ language of the WEB.
Features
========

* Drop in replacement both on pre-existing Schema Registry / Kafka Rest Proxy client and
* Drop-in replacement both on pre-existing Schema Registry / Kafka Rest Proxy client and
server-sides
* Moderate memory consumption
* Asynchronous architecture based on aiohttp
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.black]
target-version = ["py37"]
line-length = 125
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Software Development :: Libraries",
],
Expand Down

0 comments on commit 765ccd9

Please sign in to comment.