diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-05-18 22:28:32 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-05-18 22:28:32 -0500 |
| commit | 25df2df55c42edd79db78e078c0bcd11ec8b4d3d (patch) | |
| tree | e26602a6321a205df4e2c190c307de4086b14eed /docs | |
| parent | e1fe99a90b5979cae7419b28c3ec4d7c6067e955 (diff) | |
| download | flake8-25df2df55c42edd79db78e078c0bcd11ec8b4d3d.tar.gz | |
Add installation and quickstart to docs start page
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/source/index.rst | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/docs/source/index.rst b/docs/source/index.rst index f940e3d..b5a4ad5 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -6,6 +6,63 @@ Flake8: Your Tool For Style Guide Enforcement ============================================= +Installation +------------ + +To install Flake8, open an interactive shell and run: + +.. code:: + + python<version> -m pip install flake8 + +If you want Flake8 to be installed for your default Python installation, you +can instead use: + +.. code:: + + python -m pip install flake8 + +.. note:: + + It is **very** important to install Flake8 on the *correct* version of + Python for your needs. If you want Flake8 to properly parse new language + features in Python 3.5 (for example), you need it to be installed on 3.5 + for those features to be understandable. In many ways, Flake8 is tied to + the version of Python on which it runs. + +Quickstart +---------- + +To start using Flake8, open an interactive shell and run: + +.. code:: + + flake8 path/to/code/to/check.py + # or + flake8 path/to/code/ + +.. note:: + + If you have installed Flake8 on a particular version of Python (or on + several versions), it may be best to instead run ``python<version> -m + flake8``. + +If you only want to see the instances of a specific warning or error, you can +*select* that error like so: + +.. code:: + + flake8 --select <Error> path/to/code/ + +Alternatively, if you want to *ignore* only one specific warning or error: + +.. code:: + + flake8 --ignore <Error> path/to/code/ + +Please read our user guide for more information about how to use and configure +Flake8. + User Guide ---------- |
