-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into inject-requirements
- Loading branch information
Showing
32 changed files
with
117 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Move `--global` option into shared parser, such that it can be passed after the subcommand, for example `pipx ensurepath --global`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Enable and apply ruff rule `RUF100`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,9 @@ keywords = [ | |
"workflow", | ||
] | ||
license = "MIT" | ||
authors = [{ name = "Chad Smith", email = "[email protected]" }] | ||
authors = [ | ||
{ name = "Chad Smith", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
|
@@ -35,11 +37,11 @@ dynamic = [ | |
] | ||
dependencies = [ | ||
"argcomplete>=1.9.4", | ||
'colorama>=0.4.4; sys_platform == "win32"', | ||
"colorama>=0.4.4; sys_platform=='win32'", | ||
"packaging>=20", | ||
"platformdirs>=2.1", | ||
'tomli; python_version < "3.11"', | ||
"userpath!=1.9.0,>=1.6", | ||
"tomli; python_version<'3.11'", | ||
"userpath!=1.9,>=1.6", | ||
] | ||
urls."Bug Tracker" = "https://github.com/pypa/pipx/issues" | ||
urls.Documentation = "https://pipx.pypa.io" | ||
|
@@ -50,25 +52,38 @@ scripts.pipx = "pipx.main:cli" | |
|
||
[tool.hatch] | ||
build.hooks.vcs.version-file = "src/pipx/version.py" | ||
build.targets.sdist.include = ["/src", "/logo.png", "/pipx_demo.gif", "/*.md"] | ||
build.targets.sdist.include = [ | ||
"/src", | ||
"/logo.png", | ||
"/pipx_demo.gif", | ||
"/*.md", | ||
] | ||
version.source = "vcs" | ||
|
||
[tool.ruff] | ||
line-length = 121 | ||
src = ["src"] | ||
src = [ | ||
"src", | ||
] | ||
lint.extend-select = [ | ||
"A", | ||
"B", | ||
"C4", | ||
"C9", | ||
"I", | ||
"ISC", | ||
"PLC", | ||
"PLE", | ||
"PLW", | ||
"RSE", | ||
"RUF100", | ||
"W", | ||
] | ||
lint.isort = {known-first-party = ["helpers", "package_info", "pipx"]} | ||
lint.isort = { known-first-party = [ | ||
"helpers", | ||
"package_info", | ||
"pipx", | ||
] } | ||
lint.mccabe.max-complexity = 15 | ||
|
||
[tool.codespell] | ||
|
@@ -79,17 +94,25 @@ check-hidden = true | |
ignore-regex = '\b(UE|path/doesnt/exist)\b' | ||
|
||
[tool.pytest.ini_options] | ||
markers = ["all_packages: test install with maximum number of packages"] | ||
markers = [ | ||
"all_packages: test install with maximum number of packages", | ||
] | ||
|
||
[tool.towncrier] | ||
directory = "changelog.d" | ||
filename = "CHANGELOG.md" | ||
start_string = "<!-- towncrier release notes start -->\n" | ||
underlines = ["", "", ""] | ||
underlines = [ | ||
"", | ||
"", | ||
"", | ||
] | ||
title_format = "## [{version}](https://github.com/pypa/pipx/tree/{version}) - {project_date}" | ||
issue_format = "[#{issue}](https://github.com/pypa/pipx/issues/{issue})" | ||
package = "pipx" | ||
|
||
[[tool.mypy.overrides]] | ||
module = ["pycowsay.*"] | ||
module = [ | ||
"pycowsay.*", | ||
] | ||
ignore_missing_imports = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import sys | ||
|
||
if sys.version_info < (3, 8, 0): | ||
sys.exit("Python 3.8 or later is required. " "See https://github.com/pypa/pipx " "for installation instructions.") | ||
sys.exit("Python 3.8 or later is required. See https://github.com/pypa/pipx for installation instructions.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.