Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
---
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.261"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.12"
hooks:
- id: ruff
args:
- "--fix"
- "--exit-non-zero-on-fix"

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.6"
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
additional_dependencies:
- prettier
- prettier-plugin-toml

- repo: https://github.com/psf/black
rev: 23.3.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v6.31.0
rev: v10.0.0
hooks:
- id: cspell
name: Spell check with cspell

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.4.2
rev: v1.5.6
hooks:
- id: remove-tabs

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: check-symlinks
Expand All @@ -44,12 +44,12 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.4.2
hooks:
- id: codespell

- repo: https://github.com/adrienverge/yamllint
rev: v1.30.0
rev: v1.38.0
hooks:
- id: yamllint
args:
Expand All @@ -62,7 +62,7 @@ repos:
- id: darglint

- repo: https://github.com/pycqa/pylint
rev: v2.17.1
rev: v4.0.5
hooks:
- id: pylint
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion collection_prep/cmd/add_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# PYTHON_ARGCOMPLETE_OK

"""Generate or update collection documentation."""

import ast
import logging
import os
Expand Down Expand Up @@ -32,7 +33,6 @@
from collection_prep.jinja_utils import rst_ify
from collection_prep.jinja_utils import to_kludge_ns


try:
import argcomplete
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion collection_prep/cmd/runtime.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Get ready for 1.0.0."""

import glob
import logging
import os
Expand All @@ -11,7 +12,6 @@
from collection_prep.utils import get_removed_at_date
from collection_prep.utils import load_py_as_ast


logging.basicConfig(format="%(levelname)-10s%(message)s", level=logging.INFO)

COLLECTION_MIN_ANSIBLE_VERSION = ">=2.14.10"
Expand Down
2 changes: 1 addition & 1 deletion collection_prep/cmd/update.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Get ready for 1.0.0."""

import logging
import os
import platform
Expand All @@ -14,7 +15,6 @@
from collection_prep.utils import get_removed_at_date
from collection_prep.utils import load_py_as_ast


logging.basicConfig(format="%(levelname)-10s%(message)s", level=logging.INFO)

SUBDIRS = (
Expand Down
2 changes: 1 addition & 1 deletion collection_prep/cmd/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script to guess the next version of an ansible collection."""

import logging
import sys

Expand All @@ -7,7 +8,6 @@

import ruamel.yaml


yaml = ruamel.yaml.YAML()
# Preserve document layout
yaml.block_seq_indent = 2
Expand Down
2 changes: 1 addition & 1 deletion collection_prep/jinja_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities for jinja2."""

import re

from html import escape as html_escape
Expand All @@ -7,7 +8,6 @@
from ansible.module_utils.six import string_types
from jinja2.runtime import Undefined


NS_MAP = {}

_ITALIC = re.compile(r"I\(([^)]+)\)")
Expand Down
2 changes: 1 addition & 1 deletion collection_prep/utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Get ready for 1.0.0."""

import datetime

from redbaron import RedBaron


COLLECTION_MIN_ANSIBLE_VERSION = ">=2.9"
DEPRECATION_CYCLE_IN_YEAR = 2
REMOVAL_FREQUENCY_IN_MONTHS = 3
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

import setuptools


setuptools.setup(setup_requires=["pbr"], pbr=True)