Skip to content

Commit 7ce0d4b

Browse files
ci: passing ci finally?
1 parent aedcf99 commit 7ce0d4b

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

.pre-commit-config.yaml

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,37 @@
1+
exclude: ".*tests\/fixtures.*"
12
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.5.0
5+
hooks:
6+
- id: check-yaml
7+
- id: debug-statements
8+
- id: end-of-file-fixer
9+
- id: trailing-whitespace
10+
- repo: https://github.com/charliermarsh/ruff-pre-commit
11+
# Ruff version.
12+
rev: "v0.3.3"
13+
hooks:
14+
- id: ruff
15+
args: [--fix, --exit-non-zero-on-fix]
16+
types: [python]
17+
- repo: https://github.com/pre-commit/mirrors-prettier
18+
rev: v4.0.0-alpha.8
19+
hooks:
20+
- id: prettier
21+
- repo: https://github.com/rhysd/actionlint
22+
rev: v1.6.27
23+
hooks:
24+
- id: actionlint-docker
25+
name: Actionlint
226
- repo: local
327
hooks:
4-
- id: black
5-
name: black
6-
entry: black
28+
- id: bandit
29+
name: bandit
30+
entry: bandit
731
language: system
832
types: [python]
933
require_serial: true
34+
args: ["-c", "pyproject.toml"]
1035
- id: check-added-large-files
1136
name: Check for added large files
1237
entry: check-added-large-files
@@ -27,38 +52,16 @@ repos:
2752
language: system
2853
types: [text]
2954
stages: [commit, push, manual]
30-
- id: flake8
31-
name: flake8
32-
entry: flake8
33-
language: system
34-
types: [python]
35-
exclude: "^(test/*|examples/*|noxfile.py)"
36-
require_serial: true
37-
args: ["--config=.flake8"]
3855
- id: pyupgrade
3956
name: pyupgrade
4057
description: Automatically upgrade syntax for newer versions.
4158
entry: pyupgrade
4259
language: system
4360
types: [python]
44-
args: [--py37-plus]
45-
- id: reorder-python-imports
46-
name: Reorder python imports
47-
entry: reorder-python-imports
48-
language: system
49-
types: [python]
50-
args: [--application-directories=src]
61+
args: [--py311-plus]
5162
- id: trailing-whitespace
5263
name: Trim Trailing Whitespace
5364
entry: trailing-whitespace-fixer
5465
language: system
5566
types: [text]
5667
stages: [commit, push, manual]
57-
- repo: https://github.com/pre-commit/mirrors-prettier
58-
rev: v2.7.1
59-
hooks:
60-
- id: prettier
61-
- repo: https://github.com/rhysd/actionlint
62-
rev: v1.6.15
63-
hooks:
64-
- id: actionlint-docker

aprs_backend/threads/processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22
import queue
3-
from typing import Callable
3+
from collections.abc import Callable
44

55
from aprs_backend.message import APRSMessage
66
from aprs_backend.packets.tracker import ErrbotPacketTrack

noxfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Nox sessions."""
22
import os
33
import shlex
4-
import shutil
54
import sys
65
from pathlib import Path
76
from textwrap import dedent

0 commit comments

Comments
 (0)