Skip to content
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
Expand Up @@ -7,7 +7,7 @@ repos:
- id: trailing-whitespace
- id: check-yaml
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.2.4"
rev: v2.6.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand All @@ -17,7 +17,7 @@ repos:
args: [ "--fix", "--unsafe-fixes", "--show-fixes", "--exit-non-zero-on-fix"]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.14.1
hooks:
- id: mypy
args: ['--warn-unused-ignores', '--strict-equality','--no-implicit-optional', '--check-untyped-defs']
Expand Down
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [
"version",
Expand All @@ -40,7 +41,7 @@ dependencies = [
"packaging>=20",
"platformdirs>=2.1",
"tomli; python_version<'3.11'",
"userpath!=1.9,>=1.6",
"userpath>=1.6,!=1.9",
]
urls."Bug Tracker" = "https://github.com/pypa/pipx/issues"
urls.Documentation = "https://pipx.pypa.io"
Expand Down Expand Up @@ -77,14 +78,17 @@ lint.extend-select = [
"PLE",
"PLW",
"RSE",
"RUF012",
"RUF100",
"RUF",
"TC",
"W",
]
lint.ignore = [
"PERF203",
"PLW1508",
"RUF005",
]
lint.per-file-ignores."src/pipx/venv.py" = [
"A005",
]
lint.isort = { known-first-party = [
"helpers",
Expand Down
28 changes: 14 additions & 14 deletions src/pipx/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@
from pipx.commands.upgrade import upgrade, upgrade_all, upgrade_shared

__all__ = [
"upgrade",
"upgrade_all",
"upgrade_shared",
"run",
"ensure_pipx_paths",
"environment",
"inject",
"install",
"install_all",
"inject",
"uninject",
"uninstall",
"uninstall_all",
"list_interpreters",
"list_packages",
"pin",
"prune_interpreters",
"reinstall",
"reinstall_all",
"list_packages",
"run",
"run_pip",
"ensure_pipx_paths",
"environment",
"list_interpreters",
"prune_interpreters",
"pin",
"uninject",
"uninstall",
"uninstall_all",
"unpin",
"upgrade",
"upgrade_all",
"upgrade_interpreters",
"upgrade_shared",
]
2 changes: 1 addition & 1 deletion src/pipx/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
PIPX_SHARED_PTH = "pipx_shared.pth"
TEMP_VENV_EXPIRATION_THRESHOLD_DAYS = 14
MINIMUM_PYTHON_VERSION = "3.9"
MAN_SECTIONS = ["man%d" % i for i in range(1, 10)]
MAN_SECTIONS = [f"man{i}" for i in range(1, 10)]
FETCH_MISSING_PYTHON = os.environ.get("PIPX_FETCH_MISSING_PYTHON", False)


Expand Down
1 change: 1 addition & 0 deletions testdata/empty_project/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
scripts.empty-project = "empty_project.main:cli"
entry-points."pipx.run".empty-project = "empty_project.main:cli"