mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
New plugins: pep8, autopep8, trial (twisted) and pylint
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
parent
8c1d358741
commit
8515794096
7 changed files with 146 additions and 0 deletions
32
plugins/autopep8/_autopep8
Normal file
32
plugins/autopep8/_autopep8
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#compdef autopep8
|
||||
#
|
||||
# this is zsh completion function file.
|
||||
# generated by genzshcomp(ver: 0.5.1)
|
||||
#
|
||||
|
||||
typeset -A opt_args
|
||||
local context state line
|
||||
|
||||
_arguments -s -S \
|
||||
"--help[show this help message and exit]:" \
|
||||
"-h[show this help message and exit]:" \
|
||||
"--version[show program's version number and exit]:" \
|
||||
"--verbose[print verbose messages; multiple -v result in more verbose messages]" \
|
||||
"-v[print verbose messages; multiple -v result in more verbose messages]" \
|
||||
"--diff[print the diff for the fixed source]" \
|
||||
"-d[print the diff for the fixed source]" \
|
||||
"--in-place[make changes to files in place]" \
|
||||
"-i[make changes to files in place]" \
|
||||
"--recursive[run recursively; must be used with --in-place or --diff]" \
|
||||
"-r[run recursively; must be used with --in-place or --diff]" \
|
||||
"--jobs[number of parallel jobs; match CPU count if value is less than 1]::n number of parallel jobs; match CPU count if value is:_files" \
|
||||
"-j[number of parallel jobs; match CPU count if value is less than 1]::n number of parallel jobs; match CPU count if value is:_files" \
|
||||
"--pep8-passes[maximum number of additional pep8 passes (default: 100)]::n:_files" \
|
||||
"-p[maximum number of additional pep8 passes (default: 100)]::n:_files" \
|
||||
"-a[-a result in more aggressive changes]::result:_files" \
|
||||
"--exclude[exclude files/directories that match these comma- separated globs]::globs:_files" \
|
||||
"--list-fixes[list codes for fixes; used by --ignore and --select]" \
|
||||
"--ignore[do not fix these errors/warnings (default E226,E24)]::errors:_files" \
|
||||
"--select[fix only these errors/warnings (e.g. E4,W)]::errors:_files" \
|
||||
"--max-line-length[set maximum allowed line length (default: 79)]::n:_files" \
|
||||
"*::args:_files"
|
||||
0
plugins/autopep8/autopep8.plugin.zsh
Normal file
0
plugins/autopep8/autopep8.plugin.zsh
Normal file
34
plugins/pep8/_pep8
Normal file
34
plugins/pep8/_pep8
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#compdef pep8
|
||||
#
|
||||
# this is zsh completion function file.
|
||||
# generated by genzshcomp(ver: 0.5.1)
|
||||
#
|
||||
|
||||
typeset -A opt_args
|
||||
local context state line
|
||||
|
||||
_arguments -s -S \
|
||||
"--help[show this help message and exit]:" \
|
||||
"-h[show this help message and exit]:" \
|
||||
"--version[show program's version number and exit]:" \
|
||||
"--verbose[print status messages, or debug with -vv]" \
|
||||
"-v[print status messages, or debug with -vv]" \
|
||||
"--quiet[report only file names, or nothing with -qq]" \
|
||||
"-q[report only file names, or nothing with -qq]" \
|
||||
"--repeat[(obsolete) show all occurrences of the same error]" \
|
||||
"-r[(obsolete) show all occurrences of the same error]" \
|
||||
"--first[show first occurrence of each error]" \
|
||||
"--exclude[exclude files or directories which match these comma separated patterns (default: .svn,CVS,.bzr,.hg,.git,__pycache__)]::patterns:_files" \
|
||||
"--filename[when parsing directories, only check filenames matching these comma separated patterns (default: *.py)]::patterns:_files" \
|
||||
"--select[select errors and warnings (e.g. E,W6)]::errors:_files" \
|
||||
"--ignore[skip errors and warnings (e.g. E4,W)]::errors:_files" \
|
||||
"--show-source[show source code for each error]" \
|
||||
"--show-pep8[show text of PEP 8 for each error (implies --first)]" \
|
||||
"--statistics[count errors and warnings]" \
|
||||
"--count[print total number of errors and warnings to standard error and set exit code to 1 if total is not null]" \
|
||||
"--max-line-length[set maximum allowed line length (default: 79)]::n:_files" \
|
||||
"--format[set the error format \[default|pylint|<custom>\]]::format:_files" \
|
||||
"--diff[report only lines changed according to the unified diff received on STDIN]" \
|
||||
"--benchmark[measure processing speed are read from the \[pep8\] section of the tox.ini fg file located in any parent folder of the path(s) llowed options are: exclude, filename, select, ngth, count, format, quiet, show-pep8, show-source, .]" \
|
||||
"--config[user config file location (default: /home/gsemet/.config/pep8)]::path:_files" \
|
||||
"*::args:_files"
|
||||
31
plugins/pylint/_pylint
Normal file
31
plugins/pylint/_pylint
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#compdef pylint
|
||||
#
|
||||
# this is zsh completion function file.
|
||||
# generated by genzshcomp(ver: 0.5.1)
|
||||
#
|
||||
|
||||
typeset -A opt_args
|
||||
local context state line
|
||||
|
||||
_arguments -s -S \
|
||||
"--help[show this help message and exit]:" \
|
||||
"-h[show this help message and exit]:" \
|
||||
"--version[show program's version number and exit]:" \
|
||||
"--long-help[more verbose help.]" \
|
||||
"--rcfile[Specify a configuration file.]::<file>:_files" \
|
||||
"--errors-only[In error mode, checkers without error messages are disabled and for others, only the ERROR messages are displayed, and no reports are done by default]" \
|
||||
"-E[In error mode, checkers without error messages are disabled and for others, only the ERROR messages are displayed, and no reports are done by default]" \
|
||||
"--ignore[Add files or directories to the blacklist. They should be base names, not paths. \[current: CVS\]]::<file>[,<file>...]:_files" \
|
||||
"--help-msg[Display a help message for the given message id and exit. The value may be a comma separated list of message ids.]::<msg-id>:_files" \
|
||||
"--generate-rcfile[Generate a sample configuration file according to the current configuration. You can put other options before this one to get them in the generated configuration.]" \
|
||||
"--enable[Enable the message, report, category or checker with the given id(s). You can either give multiple identifier separated by comma (,) or put this option multiple time.]::<msg ids>:_files" \
|
||||
"-e[Enable the message, report, category or checker with the given id(s). You can either give multiple identifier separated by comma (,) or put this option multiple time.]::<msg ids>:_files" \
|
||||
"--disable[Disable the message, report, category or checker with the given id(s). You can either give multiple identifier separated by comma (,) or put this option multiple time (only on the command line, not in the configuration file where it should appear only once).]::<msg ids>:_files" \
|
||||
"-d[Disable the message, report, category or checker with the given id(s). You can either give multiple identifier separated by comma (,) or put this option multiple time (only on the command line, not in the configuration file where it should appear only once).]::<msg ids>:_files" \
|
||||
"--output-format[Set the output format. Available formats are text, parseable, colorized, msvs (visual studio) and html \[current: text\]]::<format>:_files" \
|
||||
"-f[Set the output format. Available formats are text, parseable, colorized, msvs (visual studio) and html \[current: text\]]::<format>:_files" \
|
||||
"--include-ids[Include message's id in output \[current: no\]]::<y_or_n>:_files" \
|
||||
"-i[Include message's id in output \[current: no\]]::<y_or_n>:_files" \
|
||||
"--reports[Tells whether to display a full report or only the messages \[current: yes\]]::<y_or_n>:_files" \
|
||||
"-r[Tells whether to display a full report or only the messages \[current: yes\]]::<y_or_n>:_files" \
|
||||
"*::args:_files"
|
||||
3
plugins/pylint/pylint.plugin.zsh
Normal file
3
plugins/pylint/pylint.plugin.zsh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Aliases
|
||||
alias pylint-quick='pylint --reports=n --include-ids=y'
|
||||
compdef _pylint-quick pylint-quick='pylint --reports=n --include-ids=y'
|
||||
46
plugins/trial/_trial
Normal file
46
plugins/trial/_trial
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
#compdef trial
|
||||
#
|
||||
# Generated by
|
||||
# trial --_shell-completion zsh:3
|
||||
|
||||
|
||||
_arguments -s -A "-*" \
|
||||
'*:file | module | package | TestCase | testMethod (*.py):_files -g "*.py"' \
|
||||
'--coverage[Generate coverage information in the coverage file in the directory specified by the temp-directory option.]' \
|
||||
"(--debug)-b[Run tests in the Python debugger. Will load '.pdbrc' from current directory if it exists.]" \
|
||||
"(-b)--debug[Run tests in the Python debugger. Will load '.pdbrc' from current directory if it exists.]" \
|
||||
'(--debug-stacktraces)-B[Report Deferred creation and callback stack traces]' \
|
||||
'(-B)--debug-stacktraces[Report Deferred creation and callback stack traces]' \
|
||||
'--disablegc[Disable the garbage collector]' \
|
||||
'(--dry-run)-n[do everything but run the tests]' \
|
||||
'(-n)--dry-run[do everything but run the tests]' \
|
||||
'--force-gc[Have Trial run gc.collect() before and after each test case.]' \
|
||||
'(--help)-h[Display this help and exit.]' \
|
||||
'(-h)--help[Display this help and exit.]' \
|
||||
'--help-reactors[Display a list of possibly available reactor names.]' \
|
||||
'--help-reporters[Help on available output plugins (reporters)]' \
|
||||
'(--logfile)-l[log file name]:log file name (*):_files -g "*"' \
|
||||
'(-l)--logfile=[log file name]:log file name (*):_files -g "*"' \
|
||||
"(--no-recurse)-N[Don't recurse into packages]" \
|
||||
"(-N)--no-recurse[Don't recurse into packages]" \
|
||||
"--nopm[don't automatically jump into debugger for postmorteming of exceptions]" \
|
||||
'--profile[Run tests under the Python profiler]' \
|
||||
'(--random)-z[Run tests in random order using the specified seed]:random seed:' \
|
||||
'(-z)--random=[Run tests in random order using the specified seed]:random seed:' \
|
||||
'(--reactor)-r[Which reactor to use (see --help-reactors for a list of possibilities)]:reactor:(debug-gui win32 glib2 kqueue epoll iocp gtk cf gtk2 default gi poll gtk3 select wx qt)' \
|
||||
'(-r)--reactor=[Which reactor to use (see --help-reactors for a list of possibilities)]:reactor:(debug-gui win32 glib2 kqueue epoll iocp gtk cf gtk2 default gi poll gtk3 select wx qt)' \
|
||||
'--recursionlimit=[see sys.setrecursionlimit()]:recursionlimit:_files' \
|
||||
'--reporter=[The reporter to use for this test run. See --help-reporters for more info.]:reporter:(subunit bwverbose text verbose timing summary)' \
|
||||
'(--rterrors)-e[realtime errors, print out tracebacks as soon as they occur]' \
|
||||
'(-e)--rterrors[realtime errors, print out tracebacks as soon as they occur]' \
|
||||
'--spew[Print an insanely verbose log of everything that happens. Useful when debugging freezes or locks in complex code.]' \
|
||||
"--tbformat=[Specify the format to display tracebacks with. Valid formats are 'plain', 'emacs', and 'cgitb' which uses the nicely verbose stdlib cgitb.text function]:tbformat:(plain emacs cgitb)" \
|
||||
'--temp-directory=[Path to use as working directory for tests.]:temp-directory:_files' \
|
||||
'--testmodule=[Filename to grep for test cases (-*- test-case-name)]:testmodule:_files' \
|
||||
'--unclean-warnings[Turn dirty reactor errors into warnings]' \
|
||||
'(--until-failure)-u[Repeat test until it fails]' \
|
||||
'(-u)--until-failure[Repeat test until it fails]' \
|
||||
'--version[Display Twisted version and exit.]' \
|
||||
'--without-module=[Fake the lack of the specified modules, separated with commas.]:without-module:_files' \
|
||||
&& return 0
|
||||
|
||||
0
plugins/trial/trial.plugin.zsh
Normal file
0
plugins/trial/trial.plugin.zsh
Normal file
Loading…
Add table
Add a link
Reference in a new issue