1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-30 17:50:07 +00:00
Commit graph

22 commits

Author SHA1 Message Date
Michael Gonzo
22bbc233e9
feat(python): autovenv keeps activated on subdirs (#12396)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-05-07 21:30:23 +02:00
Robert Crews
12cd3b3e39
feat(python): add auto venv activation (#12248)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-03-03 13:04:19 +01:00
Gautam krishna R
11b0ea33d1
fix(python): add support for cli args (#12159) 2024-01-13 18:47:54 +01:00
MikuHatsune39
ddf673b36d
fix(python): set py alias if py is not installed (#12059)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2023-11-24 09:35:46 +01:00
Carlo Sala
0818df057c
fix: use python3 for all python invocations (#10832) 2022-04-09 14:45:42 +02:00
Marc Cornellà
78c91ccbf9
style(python): fix code style and some hidden bugs 2021-12-31 20:45:12 +01:00
Marijan Smetko
02eb548d5a
feat(python): add utilities to manage simple virtual environments (#9776)
Closes #9776
2021-12-29 15:57:17 +01:00
Celestino Gomes
3e2676f7dc
feat(python): add pyserver alias to start an HTTP server (#10217)
Closes #10217
2021-12-29 15:44:25 +01:00
Roc
02ce2c4a2f
add python alias (#7736) 2021-06-11 18:50:29 -07:00
Mohammad
dd1df90252
python: add line-number to pygrep (#8867) 2020-05-23 22:33:09 +02:00
0b10
72707d92b1
python: add pyuserpaths function (#7758)
Summary
    Make it get a list of installed interpreters, and add the
    relevant local (HOME) site-packages directory to PYTHONPATH.

    Reason
    To easily add all relevant paths, initially, and between upgrades.

Add check for PYTHONUSERBASE

    Summary
    Check for a non-standard install directory, use it if one
    exists, otherwise use ~/.local.

    Reason
    Allow users to specify their own installation directory, without
    affecting functionality.
2020-03-02 13:38:44 +01:00
Petr Bělohlávek
6b54302b90 python: add alias to run the proper IPython based on virtualenv
Current state: a user invokes `ipython` and is provided with the IPython
instance regarding the `$PATH`.

Proposed state: a user invokes `ipython` (which is a new alias in the
*python plugin*) and is provided with the proper IPython instance regarding
the currently activated virtualenv.

Example: the user's default Python is 2.7 with installed IPython 2.7. User
activates Python 3.5 virtualenv where he installs IPython 3.5. After
activating the environment, one expects `ipython` to run the version 3.5,
which does not happen by default. Instead, IPython 2.7 is used, which in
counter-intuitive and often causes problem.

Closes #5797
2020-02-27 17:17:01 +01:00
Michael
9785d24172 python: fix and extend pyclean (#7762)
Deleting `.mypy_cache` did not work, because the directories were not
empty.  They contain JSON files instead of compiled byte-code.

This extends the cleanup by also getting rid of `.pytest_cache`
directories.
2019-10-25 13:24:35 +02:00
Maciej Motyka
c5b4613bf6 python: add recurse flag to pygrep (#8217)
As described in #7053
2019-10-09 19:13:25 +02:00
Batuhan's Unmaintained Account
c7d903b77e
Remove Optional Static Type Checker's (mypy) Cache Files on pyclean
Remove Optional Static Type Checker's (mypy) Cache Files on `pyclean`
2018-09-23 12:12:27 -04:00
Robby Russell
5a32796fc5 Merge pull request #2088 from Stibbons/gsemet_push_pep_pylint_completion
Completion for python, pep8, autopep8 and pylint
2013-12-02 23:45:35 -08:00
Carlos Cardoso
c6dce05fab python3 clean updated. 2013-11-12 22:55:28 -02:00
Gaetan Semet
4543852876 Completion for python, pep8, autopep8 and pylint
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
2013-09-10 11:33:58 +02:00
dsx
c592f55af1 Added ability to specify list of directories for pyclean to override default current directory 2012-10-26 12:38:17 -04:00
dir01
60c3fa9371 Python plugin: added pygrep command, simplified pyclean 2012-03-22 04:34:19 +07:00
Diógenes
b2d5b43650 refactored pycrm command 2011-04-14 12:15:26 -03:00
Diógenes
d6c150decc adding python plugin with some aliases 2011-04-13 11:55:24 -03:00