diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a6d162b57..03629abce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,7 +41,7 @@ jobs: python-version: '3.8' - run: sudo apt update - run: sudo apt install --no-install-recommends -y x11-xserver-utils - - run: pip3 install mypy==1.7.1 flake8==5.0.4 pyright==1.1.381 orjson==3.10.7 --user + - run: pip3 install mypy==1.7.1 flake8==7.1.1 pyright==1.1.381 orjson==3.10.7 --user - run: echo "$HOME/.local/bin" >> $GITHUB_PATH - run: mypy stubs - run: flake8 plugin tests diff --git a/plugin/references.py b/plugin/references.py index 19ca2b863..09e97cdd7 100644 --- a/plugin/references.py +++ b/plugin/references.py @@ -178,7 +178,7 @@ def _show_references_in_quick_panel( placeholder = "References to " + word kind = get_symbol_kind_from_scope(self.view.scope_name(position)) index = 0 - locations.sort(key=lambda l: (l['uri'], Point.from_lsp(l['range']['start']))) + locations.sort(key=lambda location: (location['uri'], Point.from_lsp(location['range']['start']))) if len(selection): pt = selection[0].b view_filename = self.view.file_name() diff --git a/tox.ini b/tox.ini index 2297f8e58..7d1d61255 100644 --- a/tox.ini +++ b/tox.ini @@ -21,7 +21,7 @@ per-file-ignores = [testenv] deps = mypy==1.7.1 - flake8==5.0.4 + flake8==7.1.1 pyright==1.1.381 orjson==3.10.7 commands =