Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade pre-commit hooks #2729

Merged
merged 2 commits into from
Mar 27, 2024
Merged
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
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:


- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.15
rev: v0.16
hooks:
- id: validate-pyproject
files: pyproject.toml$
Expand All @@ -44,24 +44,24 @@ repos:
additional_dependencies: ["rstcheck[sphinx]"]

- repo: https://github.com/MarketSquare/robotframework-tidy
rev: "4.8.1"
rev: "4.11.0"
hooks:
- id: robotidy

- repo: https://github.com/jendrikseipp/vulture
rev: v2.10
rev: v2.11
hooks:
- id: vulture
exclude: |
/tests/

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.1.13'
rev: 'v0.3.4'
hooks:
- id: ruff

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py310-plus]
Expand All @@ -73,12 +73,12 @@ repos:
args: [--target-version, "4.2"]

- repo: https://github.com/psf/black
rev: "23.12.1"
rev: "24.3.0"
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
additional_dependencies: ['types-PyYAML', 'types-cachetools', 'types-retry', 'pydantic', 'pynacl', 'httpx']
Expand Down Expand Up @@ -145,7 +145,7 @@ repos:
exclude: '^rocky/rocky/templates/admin/.*\.html$'

- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v16.1.0
rev: v16.3.0
hooks:
- id: stylelint
args: [ --fix ]
Expand All @@ -155,13 +155,13 @@ repos:
files: "^(rocky\/assets\/css\/|docs\/source\/).*.(css|scss|sass)$"

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
rev: v0.10.0.1
hooks:
- id: shellcheck
args: ["-e", "SC1091"]

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.7.0-4
rev: v3.8.0-1
hooks:
- id: shfmt
args: ["-w", "-s", "-i", "4", "-sr"]
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-05-18 14:19:15.882901

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-09-06 10:13:48.622901

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-09-06 10:13:48.622901

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-12-12 13:22:07.119970

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-02-16 14:47:20.424959

"""

import json

import sqlalchemy as sa
Expand Down
1 change: 1 addition & 0 deletions boefjes/boefjes/plugins/kat_cve_2023_34039/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
(*) Exploit by Sina Kheirkhah (@SinSinology) of Summoning Team (@SummoningTeam)

"""

import logging
import os

Expand Down
1 change: 1 addition & 0 deletions boefjes/boefjes/plugins/kat_dns/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Boefje script for getting dns records"""

import json
import logging
import re
Expand Down
1 change: 1 addition & 0 deletions boefjes/boefjes/plugins/kat_dns_zone/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Boefje script for getting dns records"""

import logging

import dns.resolver
Expand Down
1 change: 1 addition & 0 deletions boefjes/boefjes/plugins/kat_dnssec/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Boefje script checking if dnssec has been correctly configured and is valid for given hostname"""

import json
import re

Expand Down
1 change: 1 addition & 0 deletions boefjes/boefjes/plugins/kat_external_db/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Boefje script for getting domains and ipaddresses from dadb"""

from os import getenv

import requests
Expand Down
1 change: 1 addition & 0 deletions boefjes/boefjes/plugins/kat_rpki/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Boefje script for validating vrps records based on code from @trideeindhoven"""

import hashlib
import json
import os
Expand Down
1 change: 1 addition & 0 deletions boefjes/boefjes/plugins/kat_wpscan/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Boefje script for scanning wordpress sites using wpscan"""

from os import getenv

import docker
Expand Down
1 change: 1 addition & 0 deletions bytes/bytes/database/migrations/versions/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-10-19 07:43:37.479544

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-12-15 10:50:52.581056

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-12-20 13:25:08.395995

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-01-24 15:53:16.867896

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-03-23 14:28:54.048206

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-03-25 14:28:34.584808

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-04-04 18:09:09.363168

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-04-28 14:03:02.214129

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-06-17 07:44:33.849746

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-06-17 07:44:33.849746

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-06-17 07:44:33.849746

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-10-25 09:13:21.807003

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-05-19 08:24:39.803682

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-10-19 11:26:06.627048

"""

import sqlalchemy
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-11-17 13:28:05.911897

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-06-19 13:55:14.188026

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-12-02 08:45:30.638883

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-11-10 19:19:13.732053

"""

# revision identifiers, used by Alembic.
revision = "e2f76e95f1e7"
down_revision = ("0011_2", "0011")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-01-31 11:08:42.920579

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-04-13 13:36:50.196441

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-03-29 08:23:08.521462

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
1 change: 1 addition & 0 deletions keiko/keiko/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Keiko Web API."""

import logging
import uuid
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions keiko/keiko/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Keiko CLI module."""

import uuid
from typing import TextIO

Expand Down
1 change: 1 addition & 0 deletions keiko/keiko/health.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Keiko health module."""

from typing import Any

from pydantic import BaseModel, Field
Expand Down
1 change: 1 addition & 0 deletions keiko/keiko/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Version information for keiko."""

from importlib.metadata import PackageNotFoundError, version

try:
Expand Down
1 change: 1 addition & 0 deletions keiko/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Packaging script for keiko."""

from setuptools import find_packages, setup

from keiko.version import __version__
Expand Down
1 change: 1 addition & 0 deletions keiko/templates/bevindingenrapport/model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
DNS Report Datamodel
"""

from datetime import datetime

from pydantic import BaseModel, ConfigDict, Field
Expand Down
3 changes: 1 addition & 2 deletions keiko/templates/intel/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
from keiko.base_models import DataShapeBase


class DataShape(DataShapeBase):
...
class DataShape(DataShapeBase): ...
3 changes: 1 addition & 2 deletions keiko/tests/fixtures/templates/template2/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
# pylint: disable=missing-class-docstring


class DataShape(DataShapeBase):
...
class DataShape(DataShapeBase): ...
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Revises:
Create Date: 2022-07-25 11:02:13.395259
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions mula/scheduler/alembic/versions/0002_update_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Revises: 0001
Create Date: 2022-11-02 10:33:34.403970
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Loading