Skip to content

Commit 9fb6fea

Browse files
committed
autoupodate pre-commit template
1 parent 2035cd3 commit 9fb6fea

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

template/.pre-commit-config.yaml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# See https://pre-commit.com for more information
22
repos:
33
- repo: https://github.com/pycqa/bandit
4-
rev: 1.7.5
4+
rev: 1.8.6
55
hooks:
66
- id: bandit
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.1.6
8+
rev: v0.12.8
99
hooks:
1010
- id: ruff
1111
args: [
@@ -16,21 +16,12 @@ repos:
1616
args: [
1717
--config, "pyproject.toml",
1818
]
19-
- repo: https://github.com/pycqa/docformatter
20-
rev: v1.7.5
21-
hooks:
22-
- id: docformatter
23-
name: Fix docstrings
24-
- repo: https://github.com/pre-commit/mirrors-autopep8
25-
rev: v2.0.4
26-
hooks:
27-
- id: autopep8
2819
- repo: https://github.com/asottile/add-trailing-comma
29-
rev: v3.1.0
20+
rev: v3.2.0
3021
hooks:
3122
- id: add-trailing-comma
3223
- repo: https://github.com/dosisod/refurb
33-
rev: v1.24.0
24+
rev: v2.1.0
3425
hooks:
3526
- id: refurb
3627
name: Refurb

template/src/{{package_name}}/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI entry points."""
2+
23
import argparse
34

45
from .main import add_one

template/tests/test_cli.py.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test CLI."""
2+
23
import unittest
34

45
from {{package_name}}.cli import main

template/tests/test_main.py.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test Main."""
2+
23
import unittest
34

45
from {{package_name}}.main import add_one

0 commit comments

Comments
 (0)