Skip to content

Commit

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

updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0)
- [github.com/pre-commit/mirrors-mypy: v0.991 → v1.0.0](pre-commit/mirrors-mypy@v0.991...v1.0.0)

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

for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored Feb 20, 2023
1 parent 9134115 commit 6735e62
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
args: [--target-version=py37]
Expand All @@ -20,7 +20,7 @@ repos:
additional_dependencies:
- flake8-pytest-style
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.0.0
hooks:
- id: mypy
# Avoid error: Duplicate module named 'setup'
Expand Down
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@

# The short X.Y version
version = ".".join(
get_scm_version(local_scheme="no-local-version",).split(
get_scm_version(
local_scheme="no-local-version",
).split(
"."
)[:3],
)
Expand Down
1 change: 0 additions & 1 deletion piptools/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ def write(
markers: dict[str, Marker],
hashes: dict[InstallRequirement, set[str]] | None,
) -> None:

if not self.dry_run:
dst_file = io.TextIOWrapper(
self.dst_file,
Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ def make_package(tmp_path):
"""

def _make_package(name, version="0.1", install_requires=None, extras_require=None):

if install_requires is None:
install_requires = []

Expand Down
1 change: 0 additions & 1 deletion tests/test_cli_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2030,7 +2030,6 @@ def test_preserve_compiled_prerelease_version(pip_conf, runner):

@backtracking_resolver_only
def test_ignore_compiled_unavailable_version(pip_conf, runner, current_resolver):

with open("requirements.in", "w") as req_in:
req_in.write("small-fake-a")

Expand Down

0 comments on commit 6735e62

Please sign in to comment.