Skip to content

Commit

Permalink
Use ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Feb 23, 2024
1 parent 0657a86 commit eb6d779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ exclude: |
default_language_version:
python: python3
repos:
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
Expand All @@ -31,3 +27,4 @@ repos:
rev: v0.2.2
hooks:
- id: ruff
- id: ruff-format
6 changes: 2 additions & 4 deletions src/pip_deepfreeze/sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,13 @@ def check_env(python: str) -> bool:
(
# target pip does not have pip inspect: we need pkg_resources to
# inspect with env-info-json.py
pip_version
and Version(pip_version) < Version("22.2")
pip_version and Version(pip_version) < Version("22.2")
)
or (
# pip not installed in target python env and local pip is not compatible
# with target python, so we'll need pkg_resources to inspect with
# env-info-json.py
not pip_version
and not local_pip_compatible(python)
not pip_version and not local_pip_compatible(python)
)
):
setuptools_install_cmd = shlex.join(
Expand Down

0 comments on commit eb6d779

Please sign in to comment.