Skip to content

Commit a8545b1

Browse files
authored
Merge branch 'develop' into codegen/epic/2206/task/88357/solve/24775
2 parents 4ca0fd2 + cabac8e commit a8545b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+351
-303
lines changed

.github/workflows/static.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
OS: 'linux'
2323
timeout-minutes: 2
2424
steps:
25-
- uses: actions/cache@v1
25+
- uses: actions/cache@v4
2626
with:
2727
path: ~/.cache/pip
2828
key: static-pip-${{ hashFiles('pyproject.toml') }}
2929
restore-keys: static-pip-
30-
- uses: actions/checkout@v2
31-
- uses: actions/setup-python@v2
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-python@v5
3232
with:
3333
# TODO: check with Python 3, but need to fix the
3434
# errors first

.github/workflows/test-linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
PYTHON_VERSION: ['3.10', '3.9', '3.8']
2828
timeout-minutes: 10
2929
steps:
30-
- uses: actions/cache@v1
30+
- uses: actions/cache@v4
3131
with:
3232
path: ~/.cache/pip
3333
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('pyproject.toml') }}
3434
restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
35-
- uses: actions/checkout@v2
36-
- uses: actions/setup-python@v2
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-python@v5
3737
with:
3838
python-version: ${{ matrix.PYTHON_VERSION }}
3939
architecture: 'x64'

.github/workflows/test-mac.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
PYTHON_VERSION: ['3.10', '3.9', '3.8']
2828
timeout-minutes: 10
2929
steps:
30-
- uses: actions/cache@v1
30+
- uses: actions/cache@v4
3131
with:
3232
path: ~/Library/Caches/pip
3333
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('pyproject.toml') }}
3434
restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
35-
- uses: actions/checkout@v2
36-
- uses: actions/setup-python@v2
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-python@v5
3737
with:
3838
python-version: ${{ matrix.PYTHON_VERSION }}
3939
architecture: 'x64'

.github/workflows/test-win.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
PYTHON_VERSION: ['3.10', '3.9', '3.8']
2828
timeout-minutes: 10
2929
steps:
30-
- uses: actions/cache@v1
30+
- uses: actions/cache@v4
3131
with:
3232
path: ~\AppData\Local\pip\Cache
3333
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('pyproject.toml') }}
3434
restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
35-
- uses: actions/checkout@v2
36-
- uses: actions/setup-python@v2
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-python@v5
3737
with:
3838
python-version: ${{ matrix.PYTHON_VERSION }}
3939
architecture: 'x64'

CONFIGURATION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This server can be configured using the `workspace/didChangeConfiguration` metho
99
| `pylsp.plugins.flake8.enabled` | `boolean` | Enable or disable the plugin. | `false` |
1010
| `pylsp.plugins.flake8.exclude` | `array` of `string` items | List of files or directories to exclude. | `[]` |
1111
| `pylsp.plugins.flake8.extendIgnore` | `array` of `string` items | List of errors and warnings to append to ignore list. | `[]` |
12+
| `pylsp.plugins.flake8.extendSelect` | `array` of `string` items | List of errors and warnings to append to select list. | `[]` |
1213
| `pylsp.plugins.flake8.executable` | `string` | Path to the flake8 executable. | `"flake8"` |
1314
| `pylsp.plugins.flake8.filename` | `string` | Only check for filenames matching the patterns in this list. | `null` |
1415
| `pylsp.plugins.flake8.hangClosing` | `boolean` | Hang closing bracket instead of matching indentation of opening bracket's line. | `null` |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ sudo apt-get install python3-pylsp
6262
or Fedora Linux
6363

6464
```
65-
sudo dnf install python-lsp-server
65+
sudo dnf install python3-lsp-server
6666
```
6767

6868
or Arch Linux

pylsp/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
)
2626

2727

28-
def add_arguments(parser):
28+
def add_arguments(parser) -> None:
2929
parser.description = "Python Language Server"
3030

3131
parser.add_argument(
@@ -67,7 +67,7 @@ def add_arguments(parser):
6767
)
6868

6969

70-
def main():
70+
def main() -> None:
7171
parser = argparse.ArgumentParser()
7272
add_arguments(parser)
7373
args = parser.parse_args()
@@ -94,7 +94,7 @@ def _binary_stdio():
9494
return stdin, stdout
9595

9696

97-
def _configure_logger(verbose=0, log_config=None, log_file=None):
97+
def _configure_logger(verbose=0, log_config=None, log_file=None) -> None:
9898
root_logger = logging.root
9999

100100
if log_config:

pylsp/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def find_parents(root, path, names):
8888
return []
8989

9090
if not os.path.commonprefix((root, path)):
91-
log.warning("Path %s not in %s", path, root)
91+
log.warning("Path %r not in %r", path, root)
9292
return []
9393

9494
# Split the relative by directory, generate all the parent directories, then check each of them.

pylsp/config/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _hookexec(
4343

4444

4545
class Config:
46-
def __init__(self, root_uri, init_opts, process_id, capabilities):
46+
def __init__(self, root_uri, init_opts, process_id, capabilities) -> None:
4747
self._root_path = uris.to_fs_path(root_uri)
4848
self._root_uri = root_uri
4949
self._init_opts = init_opts
@@ -185,14 +185,14 @@ def plugin_settings(self, plugin, document_path=None):
185185
.get(plugin, {})
186186
)
187187

188-
def update(self, settings):
188+
def update(self, settings) -> None:
189189
"""Recursively merge the given settings into the current settings."""
190190
self.settings.cache_clear()
191191
self._settings = settings
192192
log.info("Updated settings to %s", self._settings)
193193
self._update_disabled_plugins()
194194

195-
def _update_disabled_plugins(self):
195+
def _update_disabled_plugins(self) -> None:
196196
# All plugins default to enabled
197197
self._disabled_plugins = [
198198
plugin

pylsp/config/flake8_conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
# flake8
2828
("exclude", "plugins.flake8.exclude", list),
2929
("extend-ignore", "plugins.flake8.extendIgnore", list),
30+
("extend-select", "plugins.flake8.extendSelect", list),
3031
("filename", "plugins.flake8.filename", list),
3132
("hang-closing", "plugins.flake8.hangClosing", bool),
3233
("ignore", "plugins.flake8.ignore", list),

0 commit comments

Comments
 (0)