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 #1810

Merged
merged 2 commits into from
Feb 20, 2023
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
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