Skip to content

Commit

Permalink
build(deps-dev): bump black 2024 (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotduarte committed Jan 29, 2024
1 parent 700ca83 commit 44bfca8
Show file tree
Hide file tree
Showing 130 changed files with 130 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.15
rev: v0.16
hooks:
- id: validate-pyproject

Expand All @@ -42,15 +42,15 @@ repos:
args: ["--fix", "--unsafe-fixes"]

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

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==23.12.1]
additional_dependencies: [black==24.1.1]
args: ["-l", "79"]

- repo: local
Expand Down
1 change: 1 addition & 0 deletions ci/license.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""License sync."""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Create standalone executables from Python scripts, with the same performance
and is cross-platform.
"""

# pylint: disable=invalid-name
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/_compat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Internal compatible module."""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/_typing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The internal _typing module."""

from __future__ import annotations

from pathlib import Path, PurePath
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""cxfreeze command line tool."""

from __future__ import annotations

import argparse
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/command/_bdist_msi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Borrowed from distutils.command.bdist_msi of Python 3.8
"""

# Copyright (C) 2005, 2006 Martin von Löwis
# Licensed to PSF under a Contributor Agreement.

Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/command/bdist_appimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
https://docs.appimage.org/
https://docs.appimage.org/packaging-guide/manual.html#ref-manual
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/command/bdist_deb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This is a simple wrapper around 'alien' that converts a rpm to deb.
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/command/bdist_mac.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Extends setuptools to build macOS dmg or app blundle."""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/command/bdist_msi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Extends setuptools to build Windows installer packages."""

from __future__ import annotations

import importlib
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/command/bdist_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Borrowed from distutils.command.bdist_rpm of Python 3.10 and merged with
bdist_rpm subclass of cx_Freeze 6.10.
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/command/build_exe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implements the 'build_exe' command."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/command/install.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Extends setuptools 'install' command."""

from __future__ import annotations

import contextlib
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/command/install_exe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implements the 'install_exe' command."""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common utility functions shared between cx_Freeze modules."""

from __future__ import annotations

import shutil
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/executable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the Executable base class."""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/finder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module Finder - discovers what modules are required by the code."""

from __future__ import annotations

import importlib.machinery
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/freezer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The core class for freezing scripts into executables."""

from __future__ import annotations

import marshal
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
certain packages are included or not found.
"""

# pylint: disable=invalid-name
# ruff: noqa: ARG001
from __future__ import annotations
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/_libs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helper functions for hooks."""

from __future__ import annotations

from types import CodeType
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/_qthooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are the base to hooks for PyQt5, PyQt6,
PySide2 and PySide6.
"""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/_unused_modules.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""List of modules for automatic exclusions on various platforms."""

from __future__ import annotations

import collections.abc
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/anyio.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
anyio package is included.
"""

from __future__ import annotations

from cx_Freeze.finder import ModuleFinder
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/asyncio.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
asyncio package is included.
"""

from __future__ import annotations

from cx_Freeze._compat import IS_WINDOWS
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/av.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
AV/PyAV package is included.
"""

from __future__ import annotations

from cx_Freeze._compat import IS_WINDOWS
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/backports.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
backports namespace is included.
"""

from __future__ import annotations

from cx_Freeze.finder import ModuleFinder
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/clr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
pythonnet package is included.
"""

from __future__ import annotations

from cx_Freeze.finder import ModuleFinder
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/crypto.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
pycryptodome package is included.
"""

from cx_Freeze.hooks.cryptodome import Hook as CryptoHook


Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/cryptodome.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
pycryptodomex package is included.
"""

from __future__ import annotations

from cx_Freeze.common import code_object_replace_function
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/cv2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
opencv-python package is included.
"""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/glib.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
glib package is included.
"""

from __future__ import annotations

from cx_Freeze.module import Module
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/importlib.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
importlib namespace is included.
"""

from __future__ import annotations

from cx_Freeze._compat import IS_WINDOWS
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/matplotlib.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
matplotlib package is included.
"""

from __future__ import annotations

from contextlib import suppress
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/multiprocessing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
multiprocessing package is included.
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/numpy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
numpy package is included.
"""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pandas.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
pandas package is included.
"""

from __future__ import annotations

from cx_Freeze.finder import ModuleFinder
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pil.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
Pillow (PIL) package is included.
"""

from __future__ import annotations

from cx_Freeze._compat import IS_MACOS
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pkg_resources.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
pkg_resources package is included.
"""

from __future__ import annotations

from cx_Freeze.finder import ModuleFinder
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyarrow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
pyarrow package is included.
"""

from __future__ import annotations

from cx_Freeze.finder import ModuleFinder
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyproj.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
pyproj package is included.
"""

from __future__ import annotations

from cx_Freeze.finder import ModuleFinder
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyqt5/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
PyQt5 package is included.
"""

from __future__ import annotations

from textwrap import dedent
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyqt5/_append_to_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module used to inject a code to guessing and set the plugins directory."""

import sys
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyqt5/debug.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Module used to inject a debug code to show QLibraryInfo paths if environment
variable QT_DEBUG is set.
"""

import os
import sys
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyqt6/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
PyQt6 package is included.
"""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyqt6/debug.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Module used to inject a debug code to show QLibraryInfo paths if environment
variable QT_DEBUG is set.
"""

import os
import sys
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyside2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
PySide2 package is included.
"""

from __future__ import annotations

from textwrap import dedent
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyside2/debug.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Module used to inject a debug code to show QLibraryInfo paths if environment
variable QT_DEBUG is set.
"""

import os
import sys
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyside6/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
PySide6 package is included.
"""

from __future__ import annotations

from textwrap import dedent
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pyside6/debug.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Module used to inject a debug code to show QLibraryInfo paths if environment
variable QT_DEBUG is set.
"""

import os
import sys
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions cx_Freeze/hooks/pytz.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""A collection of functions which are triggered automatically by finder when
pytz package is included.
"""

from __future__ import annotations

import os
Expand Down

0 comments on commit 44bfca8

Please sign in to comment.