Skip to content

Commit 8c93019

Browse files
committed
Fix lint
1 parent ebb811b commit 8c93019

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

docs/conf.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
#
1818
import os
1919

20+
import pipenv.vendor.click
21+
22+
# Hackery to get the CLI docs to generate
23+
from pipenv.vendor import click
24+
2025
# Path hackery to get current version number.
2126
here = os.path.abspath(os.path.dirname(__file__))
2227

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

27-
# Hackery to get the CLI docs to generate
28-
import click
29-
30-
import pipenv.vendor.click
31-
3232
click.Command = pipenv.vendor.click.Command
3333
click.Group = pipenv.vendor.click.Group
3434
click.BaseCommand = pipenv.vendor.click.BaseCommand
@@ -80,7 +80,10 @@
8080

8181
# General information about the project.
8282
project = "pipenv"
83-
copyright = '2020. A project founded by Kenneth Reitz and maintained by <a href="https://www.pypa.io/en/latest/">Python Packaging Authority (PyPA).</a>'
83+
copyright = (
84+
"2020. A project founded by Kenneth Reitz and maintained by "
85+
'<a href="https://www.pypa.io/en/latest/">Python Packaging Authority (PyPA).</a>'
86+
)
8487
author = "Python Packaging Authority"
8588

8689
# The version info for the project you're documenting, acts as replacement for

pyproject.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,16 @@ lint.select = [
136136
"W",
137137
"YTT",
138138
]
139-
lint.ignore = [ "B904", "PIE790", "PLR5501", "PLW2901" ]
139+
lint.ignore = [
140+
"B904",
141+
"PIE790",
142+
"PLR0912", # Too many branches
143+
"PLR0913", # Too many arguments
144+
"PLR2004", # Magic numbers
145+
"PLR5501",
146+
"PLW2901",
147+
"TID252", # Relative imports
148+
]
140149
lint.per-file-ignores = { "pipenv/cli/command.py" = [
141150
"F811",
142151
], "pipenv/__init__.py" = [

0 commit comments

Comments
 (0)