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

Merged
merged 2 commits into from
May 14, 2024
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,11 +7,11 @@ repos:
- id: trailing-whitespace
- id: check-yaml
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.8.0"
rev: "2.0.4"
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.4.4
hooks:
- id: ruff
args: [ "--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
Expand Down
41 changes: 31 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ keywords = [
"workflow",
]
license = "MIT"
authors = [{ name = "Chad Smith", email = "chadsmith.software@gmail.com" }]
authors = [
{ name = "Chad Smith", email = "chadsmith.software@gmail.com" },
]
requires-python = ">=3.8"
classifiers = [
"License :: OSI Approved :: MIT License",
Expand All @@ -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"
Expand All @@ -50,12 +52,19 @@ 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",
Expand All @@ -69,7 +78,11 @@ lint.extend-select = [
"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]
Expand All @@ -80,17 +93,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
4 changes: 3 additions & 1 deletion testdata/empty_project/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ requires = [
name = "empty-project"
version = "0.1.0"
description = "Empty Python Project"
authors = [{ name = "My Name", email = "me@example.com" }]
authors = [
{ name = "My Name", email = "me@example.com" },
]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
Expand Down