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

chore(deps): update pre-commit hook psf/black to v24 #35

Merged
merged 2 commits into from
Oct 23, 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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
- id: isort
args: ["--profile", "black", --line-length=120]
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.10.0
hooks:
- id: black
args: [--line-length=120]
Expand Down
1 change: 0 additions & 1 deletion anaconda_packaging_utils/api/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Description: Contains private constants, types, and classes used in the APIs provided by this package.
"""


from typing import Final

#### Constants ####
Expand Down
1 change: 1 addition & 0 deletions anaconda_packaging_utils/api/github_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
As the PyGitHub project provides a pretty extensive API, this library primarily provides utility
wrappers.
"""

import logging
from typing import Final, Optional

Expand Down
1 change: 1 addition & 0 deletions anaconda_packaging_utils/api/jira_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Source: https://github.com/pycontribs/jira
- Docs: https://jira.readthedocs.io/index.html#
"""

import logging
from typing import Final

Expand Down
1 change: 0 additions & 1 deletion anaconda_packaging_utils/api/pypi_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
API Docs: https://warehouse.pypa.io/api-reference/json.html#
"""


import datetime
import logging
from dataclasses import dataclass
Expand Down
1 change: 0 additions & 1 deletion anaconda_packaging_utils/api/repodata_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Description: Library that provides tooling for pulling and parsing `repodata.json` files from `repo.anaconda.com`
"""


import logging
from dataclasses import dataclass
from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions anaconda_packaging_utils/cryptography/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: utils.py
Description: Library that provides cryptography and hashing-related utility functions.
"""

import string


Expand Down
1 change: 1 addition & 0 deletions anaconda_packaging_utils/storage/config_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Description: Utility library that parses the standard configuration file used by the scripts. Also provides
mechanisms for accessing these user-specified constant values.
"""

import json
from pathlib import Path
from threading import Lock
Expand Down
13 changes: 7 additions & 6 deletions anaconda_packaging_utils/tests/api/test_pypi_api.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions anaconda_packaging_utils/tests/api/test_repodata_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_repodata_api.py
Description: Tests the repodata API
"""

from typing import Final, cast, no_type_check
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions anaconda_packaging_utils/tests/cli/test_subshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Description: Tests subshell utility library
TODO Proper mocking for `subprocess.run()`
"""

import platform

import pytest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_crypto_utils.py
Description: Tests cryptography utilities library
"""

import anaconda_packaging_utils.cryptography.utils as crypto_utils


Expand Down
1 change: 1 addition & 0 deletions anaconda_packaging_utils/tests/storage/test_config_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_config_data.py
Description: Tests configuration data library
"""

from typing import Final, no_type_check
from unittest.mock import mock_open, patch

Expand Down
1 change: 1 addition & 0 deletions anaconda_packaging_utils/tests/storage/test_file_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: test_file_io.py
Description: Tests file I/O utilities library
"""

from pathlib import Path
from typing import no_type_check
from unittest.mock import mock_open, patch
Expand Down
1 change: 1 addition & 0 deletions anaconda_packaging_utils/tests/testing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: testing_utils.py
Description: Contains constants and other utilities used throughout the unit tests in this project.
"""

import json
from pathlib import Path
from typing import Final
Expand Down
1 change: 1 addition & 0 deletions anaconda_packaging_utils/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
File: types.py
Description: File that contains common types and type aliases (typedefs).
"""

from typing import Final, Union

# Base types that can store value
Expand Down
Loading