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

[pre-commit.ci] pre-commit autoupdate #1820

Merged
merged 2 commits into from
Dec 24, 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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
args: [--target-version, py311, --preview]

- repo: https://github.com/asottile/pyupgrade
rev: v3.18.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py311-plus]
Expand All @@ -27,7 +27,7 @@ repos:
- id: isort

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.14.0
hooks:
- id: mypy
exclude: (docs/.*)
Expand All @@ -40,7 +40,7 @@ repos:
additional_dependencies: [flake8-bugbear]

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.18
rev: 0.7.21
hooks:
- id: mdformat
additional_dependencies:
Expand Down
6 changes: 3 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ Thanks to RedHat engineers **@dalley** + **@gerrod3** for all this refactor work

## Internal API Changes

- Old Mirror class has been renamed to BandersnatchMirror. Performs same functionality with use of new Mirror API.
- Old Mirror class has been renamed to BandersnatchMirror. Performs same functionality with use of new Mirror API.
- BandersnatchMirror now performs all filesystem operations throughout the sync process including the ones previously
in Package.
- Package no longer performs filesystem operations. Properties `json_file`, `json_pypi_symlink`, `simple_directory`
- Package no longer performs filesystem operations. Properties `json_file`, `json_pypi_symlink`, `simple_directory`
and methods `save_json_metadata`, `sync_release_files`, `gen_data_requires_python`, `generate_simple_page`,
`sync_simple_page`, `_save_simple_page_version`, `_prepare_versions_path`, `_file_url_to_local_url`,
`_file_url_to_local_path`, `download_file` have all been moved into BandersnatchMirror. Package's `sync` has been
Expand Down Expand Up @@ -369,7 +369,7 @@ Thanks to RedHat engineers **@dalley** + **@gerrod3** for all this refactor work
# 3.3.0 (2019-04-11)

- Add latest version and specific platform plugins - `Fixes #49` - Thanks **@rene-d**
- Generate data-requires-python attributes in index.html - `Fixes #68` - Thanks **@z4yx**
- Generate data-requires-python attributes in index.html - `Fixes #68` - Thanks **@z4yx**
- Make package filtering logging less noisy when disabled - `Fixes #146`
- Many pyup.io dependency upgrades

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ limitation of 32k sub-directories.

#### Client Compatibility

A bandersnatch static mirror is compatible only to the "static", cacheable
A bandersnatch static mirror is compatible only to the "static", cacheable
parts of PyPI that are needed to support package installation. It does not
support more dynamic APIs of PyPI that maybe be used by various clients for
other purposes.
Expand Down
2 changes: 1 addition & 1 deletion docs/filtering_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ enabled =

## allowlist / blocklist filtering settings

The blocklist / allowlist settings are in configuration sections named **\[blocklist\]** and **\[allowlist\]**
The blocklist / allowlist settings are in configuration sections named **[blocklist]** and **[allowlist]**
these section provides settings to indicate packages, projects and releases that should /
should not be mirrored from PyPI.

Expand Down
2 changes: 1 addition & 1 deletion docs/mirror_configuration.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mirror Configuration

The **\[mirror\]** section of the configuration file contains general options for how Bandersnatch should operate. This includes settings like the source repository to mirror, how to store mirrored files, and the kinds of files to include in the mirror.
The **[mirror]** section of the configuration file contains general options for how Bandersnatch should operate. This includes settings like the source repository to mirror, how to store mirrored files, and the kinds of files to include in the mirror.

The following options are currently _required_:

Expand Down
2 changes: 1 addition & 1 deletion src/bandersnatch_storage_plugins/swift.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def open_file(
"""Yield a file context to iterate over. If text is false, open the file with
'rb' mode specified."""
wrapper = io.StringIO if text else io.BytesIO
content: IO = wrapper(self.read_file(path, text=text))
content: IO = wrapper(self.read_file(path, text=text)) # type: ignore
yield content

def read_file(
Expand Down
Loading