Skip to content

Commit 622aa2d

Browse files
authored
Merge branch 'develop' into codegen/epic/2205/task/88650/solve/25068
2 parents 37f7831 + e8dd582 commit 622aa2d

20 files changed

+70
-42
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/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),

pylsp/config/schema.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@
5353
},
5454
"description": "List of errors and warnings to append to ignore list."
5555
},
56+
"pylsp.plugins.flake8.extendSelect": {
57+
"type": "array",
58+
"default": [],
59+
"items": {
60+
"type": "string"
61+
},
62+
"description": "List of errors and warnings to append to select list."
63+
},
5664
"pylsp.plugins.flake8.executable": {
5765
"type": "string",
5866
"default": "flake8",
@@ -500,4 +508,4 @@
500508
"description": "The name of the folder in which rope stores project configurations and data. Pass `null` for not using such a folder at all."
501509
}
502510
}
503-
}
511+
}

pylsp/config/source.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ def _get_opt(cls, config, key, option, opt_type):
5353
if not config.has_option(key, opt_key):
5454
continue
5555

56-
if opt_type == bool:
56+
if opt_type is bool:
5757
return config.getboolean(key, opt_key)
5858

59-
if opt_type == int:
59+
if opt_type is int:
6060
return config.getint(key, opt_key)
6161

62-
if opt_type == str:
62+
if opt_type is str:
6363
return config.get(key, opt_key)
6464

65-
if opt_type == list:
65+
if opt_type is list:
6666
return cls._parse_list_opt(config.get(key, opt_key))
6767

6868
raise ValueError("Unknown option type: %s" % opt_type)

pylsp/plugins/flake8_lint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def pylsp_lint(workspace, document):
7272
"config": settings.get("config"),
7373
"exclude": settings.get("exclude"),
7474
"extend-ignore": settings.get("extendIgnore"),
75+
"extend-select": settings.get("extendSelect"),
7576
"filename": settings.get("filename"),
7677
"hang-closing": settings.get("hangClosing"),
7778
"ignore": ignores or None,

0 commit comments

Comments
 (0)