Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Oct 22, 2024
1 parent ebb811b commit 8c93019
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
15 changes: 9 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
#
import os

import pipenv.vendor.click

# Hackery to get the CLI docs to generate
from pipenv.vendor import click

# Path hackery to get current version number.
here = os.path.abspath(os.path.dirname(__file__))

about = {}
with open(os.path.join(here, "..", "pipenv", "__version__.py")) as f:
exec(f.read(), about)

# Hackery to get the CLI docs to generate
import click

import pipenv.vendor.click

click.Command = pipenv.vendor.click.Command
click.Group = pipenv.vendor.click.Group
click.BaseCommand = pipenv.vendor.click.BaseCommand
Expand Down Expand Up @@ -80,7 +80,10 @@

# General information about the project.
project = "pipenv"
copyright = '2020. A project founded by Kenneth Reitz and maintained by <a href="https://www.pypa.io/en/latest/">Python Packaging Authority (PyPA).</a>'
copyright = (
"2020. A project founded by Kenneth Reitz and maintained by "
'<a href="https://www.pypa.io/en/latest/">Python Packaging Authority (PyPA).</a>'
)
author = "Python Packaging Authority"

# The version info for the project you're documenting, acts as replacement for
Expand Down
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,16 @@ lint.select = [
"W",
"YTT",
]
lint.ignore = [ "B904", "PIE790", "PLR5501", "PLW2901" ]
lint.ignore = [
"B904",
"PIE790",
"PLR0912", # Too many branches
"PLR0913", # Too many arguments
"PLR2004", # Magic numbers
"PLR5501",
"PLW2901",
"TID252", # Relative imports
]
lint.per-file-ignores = { "pipenv/cli/command.py" = [
"F811",
], "pipenv/__init__.py" = [
Expand Down

0 comments on commit 8c93019

Please sign in to comment.