Skip to content

Commit 89fb20d

Browse files
committed
Drop 3.6
1 parent b99622b commit 89fb20d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
18+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1919

2020
steps:
2121
- uses: actions/checkout@v2

README.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is a plugin for the `Python LSP Server`_.
1111

1212
.. _`Python LSP Server`: https://github.com/python-lsp/python-lsp-server
1313

14-
It, like mypy, requires Python 3.6 or newer.
14+
It, like mypy, requires Python 3.7 or newer.
1515

1616

1717
Installation
@@ -36,6 +36,16 @@ Configuration
3636
``overrides`` (default is ``[True]``) specifies a list of alternate or supplemental command-line options.
3737
This modifies the options passed to ``mypy`` or the mypy-specific ones passed to ``dmypy run``. When present, the special boolean member ``True`` is replaced with the command-line options that would've been passed had ``overrides`` not been specified. Later options take precedence, which allows for replacing or negating individual default options (see ``mypy.main:process_options`` and ``mypy --help | grep inverse``).
3838

39+
This project supports the use of ``pyproject.toml`` for configuration. It is in fact the preferred way. Using that your configuration could look like this:
40+
41+
::
42+
43+
[tool.pylsp-mypy]
44+
enabled = true
45+
live_mode = true
46+
strict = true
47+
48+
A ``pyproject.toml`` does not conflict with the legacy config file given that it does not contain a ``pylsp-mypy`` section. The following explanation uses the syntax of the legacy config file. However, all these options also apply to the ``pyproject.toml`` configuration (note the lowercase bools).
3949
Depending on your editor, the configuration (found in a file called pylsp-mypy.cfg in your workspace or a parent directory) should be roughly like this for a standard configuration:
4050

4151
::

0 commit comments

Comments
 (0)