Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#524)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.1 → 24.8.0](psf/black@23.12.1...24.8.0)
- [github.com/asottile/blacken-docs: 1.16.0 → 1.18.0](adamchainz/blacken-docs@1.16.0...1.18.0)
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/PyCQA/flake8: 7.0.0 → 7.1.1](PyCQA/flake8@7.0.0...7.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Duarte Trevisani <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and marcelotrevisani authored Aug 18, 2024
1 parent 9ecb0a7 commit 6d797ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
exclude: docs
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.8.0
hooks:
- id: black
args: [--safe, --quiet]
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies: [black==22.6.0]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -34,7 +34,7 @@ repos:
- id: isort
exclude: tests/data
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8
exclude: tests/data
Expand Down
3 changes: 1 addition & 2 deletions grayskull/strategy/abstract_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
class AbstractStrategy(metaclass=ABCMeta):
@staticmethod
@abstractmethod
def fetch_data(recipe, config, sections=None):
...
def fetch_data(recipe, config, sections=None): ...
7 changes: 4 additions & 3 deletions grayskull/strategy/py_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,9 +678,10 @@ def download_sdist_pkg(sdist_url: str, dest: str, name: Optional[str] = None):
response = requests.get(sdist_url, allow_redirects=True, stream=True, timeout=5)
response.raise_for_status()
total_size = int(response.headers.get("Content-length", 0))
with manage_progressbar(max_value=total_size, prefix=f"{name} ") as bar, open(
dest, "wb"
) as pkg_file:
with (
manage_progressbar(max_value=total_size, prefix=f"{name} ") as bar,
open(dest, "wb") as pkg_file,
):
progress_val = 0
chunk_size = 512
for chunk_data in response.iter_content(chunk_size=chunk_size):
Expand Down

0 comments on commit 6d797ca

Please sign in to comment.