Skip to content

Commit

Permalink
build: replace black and pyupgrade with ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
  • Loading branch information
kaechele committed Mar 5, 2024
1 parent 6f59028 commit b2fc68c
Show file tree
Hide file tree
Showing 4 changed files with 407 additions and 515 deletions.
34 changes: 18 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.10.0
rev: v3.16.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: debug-statements
- id: check-builtin-literals
Expand All @@ -17,25 +17,27 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-poetry/poetry
rev: 1.6.0
rev: 1.8.0
hooks:
- id: poetry-check
- repo: https://github.com/asottile/pyupgrade
rev: v3.14.0
hooks:
- id: pyupgrade
args: [--py311-plus]
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.292
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
hooks:
- id: ruff-format
name: ruff (format)
args: ["."]
pass_filenames: false
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
name: ruff (lint)
args:
- "--fix"
- "--exit-non-zero-on-fix"
- "--statistics"
- "--output-format=text"
- "."
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies:
Expand Down
1 change: 1 addition & 0 deletions certbot_dns_pdns/dns_pdns.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: Apache-2.0

"""DNS Authenticator for PowerDNS."""

import logging
from collections.abc import Callable
from typing import Any
Expand Down
Loading

0 comments on commit b2fc68c

Please sign in to comment.