File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed
Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1717#
1818import 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.
2126here = os .path .abspath (os .path .dirname (__file__ ))
2227
2328about = {}
2429with 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-
3232click .Command = pipenv .vendor .click .Command
3333click .Group = pipenv .vendor .click .Group
3434click .BaseCommand = pipenv .vendor .click .BaseCommand
8080
8181# General information about the project.
8282project = "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+ )
8487author = "Python Packaging Authority"
8588
8689# The version info for the project you're documenting, acts as replacement for
Original file line number Diff line number Diff 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+ ]
140149lint.per-file-ignores = { "pipenv/cli/command.py" = [
141150 " F811" ,
142151], "pipenv/__init__.py" = [
You can’t perform that action at this time.
0 commit comments