From edc449275b6c04445f58b108ca0937a87c1e8430 Mon Sep 17 00:00:00 2001 From: Aditya Date: Mon, 27 Feb 2023 20:04:56 +0530 Subject: add zsh --- oh-my-zsh/plugins/pylint/README.md | 16 +++++++++++++++ oh-my-zsh/plugins/pylint/_pylint | 31 ++++++++++++++++++++++++++++++ oh-my-zsh/plugins/pylint/pylint.plugin.zsh | 1 + 3 files changed, 48 insertions(+) create mode 100644 oh-my-zsh/plugins/pylint/README.md create mode 100644 oh-my-zsh/plugins/pylint/_pylint create mode 100644 oh-my-zsh/plugins/pylint/pylint.plugin.zsh (limited to 'oh-my-zsh/plugins/pylint') diff --git a/oh-my-zsh/plugins/pylint/README.md b/oh-my-zsh/plugins/pylint/README.md new file mode 100644 index 0000000..31710d8 --- /dev/null +++ b/oh-my-zsh/plugins/pylint/README.md @@ -0,0 +1,16 @@ +# pylint + +This plugin adds aliases and autocompletion for [Pylint](https://www.pylint.org/), +the Python code style checking tool. + +To use it, add `pylint` to the plugins array in your zshrc file: + +```zsh +plugins=(... pylint) +``` + +## Aliases + +| Alias | Command | Description | +| -------------| -------------------- | -------------------------------------------------------------------------------------------------------------------------| +| pylint-quick | `pylint --reports=n` | Displays a set of reports each one focusing on a particular aspect of the project, default set `no` for multiple reports | diff --git a/oh-my-zsh/plugins/pylint/_pylint b/oh-my-zsh/plugins/pylint/_pylint new file mode 100644 index 0000000..e466d05 --- /dev/null +++ b/oh-my-zsh/plugins/pylint/_pylint @@ -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.]:::_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\]]::[,...]:_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.]:::_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.]:::_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.]:::_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).]:::_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).]:::_files" \ + "--output-format[Set the output format. Available formats are text, parseable, colorized, msvs (visual studio) and html \[current: text\]]:::_files" \ + "-f[Set the output format. Available formats are text, parseable, colorized, msvs (visual studio) and html \[current: text\]]:::_files" \ + "--include-ids[Include message's id in output \[current: no\]]:::_files" \ + "-i[Include message's id in output \[current: no\]]:::_files" \ + "--reports[Tells whether to display a full report or only the messages \[current: yes\]]:::_files" \ + "-r[Tells whether to display a full report or only the messages \[current: yes\]]:::_files" \ + "*::args:_files" diff --git a/oh-my-zsh/plugins/pylint/pylint.plugin.zsh b/oh-my-zsh/plugins/pylint/pylint.plugin.zsh new file mode 100644 index 0000000..14cea5b --- /dev/null +++ b/oh-my-zsh/plugins/pylint/pylint.plugin.zsh @@ -0,0 +1 @@ +alias pylint-quick='pylint --reports=n' -- cgit v1.2.3