Commit Graph

25 Commits

Author SHA1 Message Date
Damian Shaw 68529081c2
Enforce f-strings via Ruff (#12393) 2023-11-07 09:14:56 +00:00
Pradyun Gedam 78ab4cf071
Bump all linters other than mypy (#11901) 2023-03-27 20:03:11 +01:00
Nipunn Koorapati 2aab462b7f Bump mypy to 0.910
This notably gets us on a version of mypy that uses modular typeshed:
https://mypy-lang.blogspot.com/2021/05/the-upcoming-switch-to-modular-typeshed.html
which allows us to have finer control over what version of stubs we pull
in from typeshed. Also contains other routine improvements to mypy.

Required a few minor typing changes.

Add flag --show-error-code so errors look like this

src/pip/_internal/network/auth.py:70: error: Incompatible types in assignment
(expression has type "None", variable has type Module)  [assignment]

rather than

src/pip/_internal/network/auth.py:70: error: Incompatible types in assignment
(expression has type "None", variable has type Module)
2021-08-09 16:47:02 -07:00
Sviatoslav Sydorenko 92862e28ec
Enable parallelism in Sphinx 2021-04-20 22:35:53 +02:00
Stéphane Bidoul 29c50c8188 Add missing type annotation in docs/ 2021-04-04 13:58:59 +02:00
Tzu-ping Chung dee71ce661 Run lint on code base 2021-04-04 06:20:27 +08:00
Pradyun Gedam 2571067215
Merge branch 'main' into custom-news-directive 2021-04-02 10:44:46 +01:00
Jon Dufresne 96615e92c4 Complete typing of docs directory 2021-03-06 14:14:34 -08:00
Pradyun Gedam 714b6f13af
Add a pip-cli directive for MyST 2021-03-06 11:09:14 +00:00
Pradyun Gedam 6b076e53d7
Blacken pip_sphinxext.py 2021-03-06 11:09:09 +00:00
Andrey Bienkowski 9b2cb894ba Convert more str.format() calls to f-strings 2021-02-13 09:27:17 +03:00
Tzu-ping Chung 474c82bc3e Custom RST directive to generate stable version ID 2021-01-21 02:02:53 +08:00
Jon Dufresne cdcf74fb8e Use f-strings for simple string formatting
Use pyupgrade to convert simple string formatting to use f-string
syntax. pyupgrade is intentionally timid and will not create an f-string
if it would make the expression longer or if the substitution parameters
are anything but simple names or dotted names.
2020-12-25 16:21:20 -08:00
Pradyun Gedam 321163fb98
Fix misplaced blockquotes
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-12 07:29:19 +05:30
Srinivas Nyayapati 423ccfd4f1 WIP upd directive to use cmd prefix + upd ref docs 2020-09-13 20:59:29 -04:00
Srinivas Nyayapati da3b7e0578 WIP - update pip-command-usage to take optional arguments and update pip install docs 2020-09-13 20:59:29 -04:00
Noah Gorny 7494d70356 docs: Improve prefix calculation of reqfile option autogeneration 2020-06-01 21:56:59 +03:00
Noah Gorny a80d5426ca docs: Reqfile options are now generated automatically 2020-06-01 21:56:59 +03:00
Jason R. Coombs 3511d3d493 Convert the remaining '%' formatters to '.format'. Fixes #6973. 2020-03-06 12:43:03 -05:00
Anudit Nagar 082c0f01d2
Update old-style formatting to new-style formatting (#7762) 2020-02-21 21:48:14 +05:30
sinoroc 72e8510f3b Fix documentation links for index options
In the documentation the links for the pip commands index options
are mixed up.

The index options are common to multiple commands, but in the
documentation they should be specific to a command for the links to
point to the right chapter.

GitHub: #7347
2019-11-13 00:01:19 +01:00
Chris Jerdonek 1f09e67f34 Only import a Command class when it is actually needed.
This resulted in an approximate 24% speed-up of a vanilla `pip`
invocation on one system (0.477 secs before, 0.363 secs after).
2019-07-26 23:30:26 -04:00
Pradyun Gedam 9bb184d1f2
Fix line-too-long linter message 2018-11-08 12:35:05 +05:30
albertg 1e654ad038 add command name for reference documents 2018-11-04 16:03:11 -05:00
Pradyun Gedam d2e7377c0f
Reorganize pip's docs folder 2018-08-22 13:54:47 +05:30
Renamed from docs/pipext.py (Browse further)