Skip to content

Commit

Permalink
Release 0.8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
davehadley committed Nov 14, 2024
1 parent 7855939 commit d090961
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length
max-line-length = 88
select = C,E,F,W,B,B950
extend-ignore = E203, E501
extend-ignore = E203, E501, W503
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ default_stages: [commit]
repos:

- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
stages: [ commit ]

- repo: https://github.com/ambv/black
rev: 22.3.0
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
stages: [commit]

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
stages: [commit]
Expand All @@ -27,7 +27,7 @@ repos:
args: [--ignore-missing-imports]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ktfmt-pre-commit-hook

[![Main Build status](https://img.shields.io/github/workflow/status/davehadley/ktfmt-pre-commit-hook/ci/main?label=main)](https://github.com/davehadley/ktfmt-pre-commit-hook)
[![Develop status](https://img.shields.io/github/workflow/status/davehadley/ktfmt-pre-commit-hook/ci/develop?label=develop)](https://github.com/davehadley/ktfmt-pre-commit-hook)
[![Main Build status](https://img.shields.io/github/actions/workflow/status/davehadley/ktfmt-pre-commit-hook/ci.yml?branch=main&label=main)](https://github.com/davehadley/ktfmt-pre-commit-hook)
[![Develop status](https://img.shields.io/github/actions/workflow/status/davehadley/ktfmt-pre-commit-hook/ci.yml?branch=develop&label=develop)](https://github.com/davehadley/ktfmt-pre-commit-hook)
[![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue)](https://github.com/davehadley/ktfmt-pre-commit-hook)
[![Last commit](https://img.shields.io/github/last-commit/davehadley/ktfmt-pre-commit-hook/develop)](https://github.com/davehadley/ktfmt-pre-commit-hook)
[![Last release](https://img.shields.io/github/release-date/davehadley/ktfmt-pre-commit-hook)](https://github.com/davehadley/ktfmt-pre-commit-hook)
Expand All @@ -20,7 +20,7 @@ Add the following lines to your `.pre-commit-config.yaml`.

```yaml
- repo: https://github.com/davehadley/ktfmt-pre-commit-hook
rev: 0.7.0
rev: 0.8.0
hooks:
- id: ktfmt
stages: [commit]
Expand All @@ -31,10 +31,10 @@ All other `args` provided will be passed onto `ktfmt`. For example:

```yaml
- repo: https://github.com/davehadley/ktfmt-pre-commit-hook
rev: 0.7.0
rev: 0.8.0
hooks:
- id: ktfmt
args: [--version=0.39, --dropbox-style]
args: [--version=0.53, --dropbox-style]
stages: [commit]
```

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ktfmt-pre-commit-hook"
version = "0.7.0"
version = "0.8.0"
description = "A pre-commit hook to run ktfmt."
license = "MIT OR Apache-2.0"
authors = ["David Hadley <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion src/ktfmtprecommithook/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.7.0"
__version__ = "0.8.0"

from argparse import ArgumentParser
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion src/ktfmtprecommithook/ktfmtprecommithook.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from filelock import FileLock # type: ignore

DEFAULT_KTFMT_VERSION = "0.39"
DEFAULT_KTFMT_VERSION = "0.53"


def ktfmtprecommithook(
Expand Down
3 changes: 1 addition & 2 deletions tests/test_precommit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
"extra_args",
[
[],
["--dropbox-style"],
["--meta-style"],
["--google-style"],
["--kotlinlang-style"],
["--version=0.28"],
],
)
def test_ktfmtprecommithook(extra_args: List[str]):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ def test_version():
import ktfmtprecommithook

# Please remember to change the version in README.md when you change this.
assert ktfmtprecommithook.__version__ == "0.7.0"
assert ktfmtprecommithook.__version__ == "0.8.0"

0 comments on commit d090961

Please sign in to comment.