diff options
| author | Anthony Sottile <asottile@umich.edu> | 2021-03-31 14:22:37 +0000 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2021-03-31 14:22:37 +0000 |
| commit | e0116d8e77fb04acc62095734ec49e779f24ee54 (patch) | |
| tree | 382ad5e83f6512ff157553c6a8c16b63569cec70 /docs/source/user | |
| parent | 1d5dd156ab9f2e37e40f95eb15c5a2c2cd49a7a9 (diff) | |
| parent | edadccd8dcf5fc1de86116adb5f9f13ed1b68637 (diff) | |
| download | flake8-e0116d8e77fb04acc62095734ec49e779f24ee54.tar.gz | |
Merge branch 'py3_plus' into 'master'
drop legacy python versions
Closes #690
See merge request pycqa/flake8!471
Diffstat (limited to 'docs/source/user')
| -rw-r--r-- | docs/source/user/error-codes.rst | 5 | ||||
| -rw-r--r-- | docs/source/user/invocation.rst | 10 | ||||
| -rw-r--r-- | docs/source/user/using-plugins.rst | 4 |
3 files changed, 6 insertions, 13 deletions
diff --git a/docs/source/user/error-codes.rst b/docs/source/user/error-codes.rst index e74675f..9eab3f7 100644 --- a/docs/source/user/error-codes.rst +++ b/docs/source/user/error-codes.rst @@ -100,8 +100,6 @@ generates its own :term:`error code`\ s for ``pyflakes``: +------+---------------------------------------------------------------------+ | F811 | redefinition of unused ``name`` from line ``N`` | +------+---------------------------------------------------------------------+ -| F812 | list comprehension redefines ``name`` from line ``N`` | -+------+---------------------------------------------------------------------+ | F821 | undefined name ``name`` | +------+---------------------------------------------------------------------+ | F822 | undefined name ``name`` in ``__all__`` | @@ -116,9 +114,6 @@ generates its own :term:`error code`\ s for ``pyflakes``: | F901 | ``raise NotImplemented`` should be ``raise NotImplementedError`` | +------+---------------------------------------------------------------------+ -Note that some of these entries behave differently on Python 2 and Python 3, -for example F812 is specific to Python 2 only. - We also report one extra error: ``E999``. We report ``E999`` when we fail to compile a file into an Abstract Syntax Tree for the plugins that require it. diff --git a/docs/source/user/invocation.rst b/docs/source/user/invocation.rst index 099b72a..4c141fd 100644 --- a/docs/source/user/invocation.rst +++ b/docs/source/user/invocation.rst @@ -14,25 +14,25 @@ like so: Where you simply allow the shell running in your terminal to locate |Flake8|. In some cases, though, you may have installed |Flake8| for multiple versions -of Python (e.g., Python 2.7 and Python 3.5) and you need to call a specific +of Python (e.g., Python 3.8 and Python 3.9) and you need to call a specific version. In that case, you will have much better results using: .. prompt:: bash - python2.7 -m flake8 + python3.8 -m flake8 Or .. prompt:: bash - python3.5 -m flake8 + python3.9 -m flake8 Since that will tell the correct version of Python to run |Flake8|. .. note:: - Installing |Flake8| once will not install it on both Python 2.7 and - Python 3.5. It will only install it for the version of Python that + Installing |Flake8| once will not install it on both Python 3.8 and + Python 3.9. It will only install it for the version of Python that is running pip. It is also possible to specify command-line options directly to |Flake8|: diff --git a/docs/source/user/using-plugins.rst b/docs/source/user/using-plugins.rst index 3971578..eddb258 100644 --- a/docs/source/user/using-plugins.rst +++ b/docs/source/user/using-plugins.rst @@ -24,10 +24,8 @@ appropriate of: pip install <plugin-name> pip3 install <plugin-name> python -m pip install <plugin-name> - python2.7 -m pip install <plugin-name> python3 -m pip install <plugin-name> - python3.4 -m pip install <plugin-name> - python3.5 -m pip install <plugin-name> + python3.9 -m pip install <plugin-name> To install the plugin, where ``<plugin-name>`` is the package name on PyPI_. To verify installation use: |
