deepnote-python-lsp-server 0.0.0__tar.gz → 1.13.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. deepnote_python_lsp_server-1.13.1.1/.coveragerc +2 -0
  2. deepnote_python_lsp_server-1.13.1.1/.git-blame-ignore-revs +5 -0
  3. deepnote_python_lsp_server-1.13.1.1/.gitattributes +1 -0
  4. deepnote_python_lsp_server-1.13.1.1/.github/workflows/release.yml +45 -0
  5. deepnote_python_lsp_server-1.13.1.1/.github/workflows/static.yml +50 -0
  6. deepnote_python_lsp_server-1.13.1.1/.github/workflows/test-linux.yml +52 -0
  7. deepnote_python_lsp_server-1.13.1.1/.github/workflows/test-mac.yml +52 -0
  8. deepnote_python_lsp_server-1.13.1.1/.github/workflows/test-win.yml +44 -0
  9. deepnote_python_lsp_server-1.13.1.1/.gitignore +123 -0
  10. deepnote_python_lsp_server-1.13.1.1/.policy.yml +100 -0
  11. deepnote_python_lsp_server-1.13.1.1/.well-known/funding-manifest-urls +1 -0
  12. deepnote_python_lsp_server-1.13.1.1/CHANGELOG.md +791 -0
  13. deepnote_python_lsp_server-1.13.1.1/CONFIGURATION.md +82 -0
  14. deepnote_python_lsp_server-1.13.1.1/CONTRIBUTING.md +40 -0
  15. {deepnote_python_lsp_server-0.0.0/deepnote_python_lsp_server.egg-info → deepnote_python_lsp_server-1.13.1.1}/PKG-INFO +7 -6
  16. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/README.md +1 -2
  17. deepnote_python_lsp_server-1.13.1.1/RELEASE.md +22 -0
  18. deepnote_python_lsp_server-1.13.1.1/SECURITY.md +17 -0
  19. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1/deepnote_python_lsp_server.egg-info}/PKG-INFO +7 -6
  20. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/deepnote_python_lsp_server.egg-info/SOURCES.txt +29 -0
  21. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/deepnote_python_lsp_server.egg-info/entry_points.txt +1 -0
  22. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/deepnote_python_lsp_server.egg-info/requires.txt +3 -1
  23. deepnote_python_lsp_server-1.13.1.1/deepnote_python_lsp_server.egg-info/scm_file_list.json +103 -0
  24. deepnote_python_lsp_server-1.13.1.1/deepnote_python_lsp_server.egg-info/scm_version.json +8 -0
  25. deepnote_python_lsp_server-1.13.1.1/docs/autoimport.md +26 -0
  26. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/__main__.py +4 -4
  27. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/_utils.py +99 -6
  28. deepnote_python_lsp_server-1.13.1.1/pylsp/_version.py +1 -0
  29. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/config/config.py +3 -2
  30. deepnote_python_lsp_server-1.13.1.1/pylsp/config/schema.json +539 -0
  31. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/hookspecs.py +10 -0
  32. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/_resolvers.py +2 -2
  33. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/_rope_task_handle.py +9 -8
  34. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/definition.py +4 -4
  35. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/flake8_lint.py +3 -3
  36. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/hover.py +11 -9
  37. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/jedi_completion.py +35 -16
  38. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/preload_imports.py +39 -5
  39. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/pylint_lint.py +1 -1
  40. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/rope_autoimport.py +16 -15
  41. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/rope_completion.py +1 -1
  42. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/symbols.py +6 -1
  43. deepnote_python_lsp_server-1.13.1.1/pylsp/plugins/type_definition.py +38 -0
  44. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/python_lsp.py +51 -22
  45. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/uris.py +1 -1
  46. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/workspace.py +85 -24
  47. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pyproject.toml +10 -7
  48. deepnote_python_lsp_server-1.13.1.1/scripts/circle/pypi.sh +17 -0
  49. deepnote_python_lsp_server-1.13.1.1/scripts/jsonschema2md.py +87 -0
  50. deepnote_python_lsp_server-1.13.1.1/test/data/publish_diagnostics_message_examples/example_1.json +36 -0
  51. deepnote_python_lsp_server-1.13.1.1/test/data/publish_diagnostics_message_examples/example_2.json +68 -0
  52. deepnote_python_lsp_server-1.13.1.1/test/plugins/__init__.py +0 -0
  53. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_autoimport.py +4 -4
  54. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_completion.py +8 -7
  55. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_definitions.py +3 -0
  56. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_flake8_lint.py +5 -5
  57. deepnote_python_lsp_server-1.13.1.1/test/plugins/test_hover.py +177 -0
  58. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_jedi_rename.py +1 -0
  59. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_references.py +1 -0
  60. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_signature.py +3 -8
  61. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_symbols.py +29 -0
  62. deepnote_python_lsp_server-1.13.1.1/test/plugins/test_type_definition.py +99 -0
  63. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/test_notebook_document.py +69 -1
  64. deepnote_python_lsp_server-1.13.1.1/test/test_python_lsp.py +161 -0
  65. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/test_utils.py +4 -4
  66. deepnote_python_lsp_server-0.0.0/test/plugins/test_hover.py +0 -111
  67. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/.pylintrc +0 -0
  68. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/LICENSE +0 -0
  69. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/MANIFEST.in +0 -0
  70. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/deepnote_python_lsp_server.egg-info/dependency_links.txt +0 -0
  71. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/deepnote_python_lsp_server.egg-info/top_level.txt +0 -0
  72. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/__init__.py +0 -0
  73. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/config/__init__.py +0 -0
  74. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/config/flake8_conf.py +0 -0
  75. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/config/pycodestyle_conf.py +0 -0
  76. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/config/source.py +0 -0
  77. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/lsp.py +0 -0
  78. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/__init__.py +0 -0
  79. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/autopep8_format.py +0 -0
  80. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/folding.py +0 -0
  81. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/highlight.py +0 -0
  82. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/jedi_rename.py +0 -0
  83. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/mccabe_lint.py +0 -0
  84. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/pycodestyle_lint.py +0 -0
  85. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/pydocstyle_lint.py +0 -0
  86. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/pyflakes_lint.py +0 -0
  87. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/references.py +0 -0
  88. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/signature.py +0 -0
  89. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/plugins/yapf_format.py +0 -0
  90. /deepnote_python_lsp_server-0.0.0/test/plugins/__init__.py → /deepnote_python_lsp_server-1.13.1.1/pylsp/py.typed +0 -0
  91. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/pylsp/text_edit.py +0 -0
  92. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/setup.cfg +0 -0
  93. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/setup.py +0 -0
  94. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/__init__.py +0 -0
  95. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/conftest.py +0 -0
  96. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/fixtures.py +0 -0
  97. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_autopep8_format.py +0 -0
  98. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_folding.py +0 -0
  99. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_highlight.py +0 -0
  100. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_mccabe_lint.py +0 -0
  101. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_pycodestyle_lint.py +0 -0
  102. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_pydocstyle_lint.py +0 -0
  103. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_pyflakes_lint.py +0 -0
  104. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_pylint_lint.py +0 -0
  105. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/plugins/test_yapf_format.py +0 -0
  106. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/test_configuration.py +0 -0
  107. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/test_document.py +0 -0
  108. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/test_language_server.py +0 -0
  109. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/test_text_edit.py +0 -0
  110. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/test_uris.py +0 -0
  111. {deepnote_python_lsp_server-0.0.0 → deepnote_python_lsp_server-1.13.1.1}/test/test_workspace.py +0 -0
@@ -0,0 +1,2 @@
1
+ [run]
2
+ omit = pylsp/_version.py
@@ -0,0 +1,5 @@
1
+ # Reformatting with Black
2
+ d47dc3c1fd1f2bafcc079006c3283e465b372f75
3
+
4
+ # Reformatting with Ruff
5
+ fc2851a23b840481eb92ac522da5bc85305e9d8e
@@ -0,0 +1 @@
1
+ pylsp/_version.py export-subst
@@ -0,0 +1,45 @@
1
+ name: PyLS Release
2
+
3
+ on:
4
+ release:
5
+ types:
6
+ - created
7
+
8
+ jobs:
9
+ build:
10
+ name: Linux Py${{ matrix.PYTHON_VERSION }}
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ CI: "true"
14
+ OS: "linux"
15
+ PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ PYTHON_VERSION: ["3.9"]
20
+ timeout-minutes: 10
21
+ permissions:
22
+ contents: read
23
+ actions: write
24
+ id-token: write
25
+ steps:
26
+ - uses: actions/cache@v4
27
+ with:
28
+ path: ~/.cache/pip
29
+ key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('pyproject.toml') }}
30
+ restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
31
+ - uses: actions/checkout@v4
32
+ with:
33
+ ref: ${{ github.ref }}
34
+ fetch-depth: 0
35
+ fetch-tags: true
36
+ - uses: actions/setup-python@v5
37
+ with:
38
+ python-version: ${{ matrix.PYTHON_VERSION }}
39
+ architecture: "x64"
40
+ - run: python -m pip install --upgrade pip build twine
41
+ - name: Build and publish python-language-server
42
+ run: |
43
+ python -m build
44
+ python -m twine check dist/*
45
+ python -m twine upload dist/*
@@ -0,0 +1,50 @@
1
+ name: Static code analysis
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - develop
7
+
8
+ pull_request:
9
+ branches:
10
+ - '*'
11
+
12
+ concurrency:
13
+ group: static-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ build:
18
+ name: Static code analysis
19
+ runs-on: ubuntu-latest
20
+ env:
21
+ CI: 'true'
22
+ OS: 'linux'
23
+ timeout-minutes: 2
24
+ steps:
25
+ - uses: actions/cache@v4
26
+ with:
27
+ path: ~/.cache/pip
28
+ key: static-pip-${{ hashFiles('pyproject.toml') }}
29
+ restore-keys: static-pip-
30
+ - uses: actions/checkout@v4
31
+ - uses: actions/setup-python@v5
32
+ with:
33
+ python-version: '3.9'
34
+ architecture: 'x64'
35
+ - run: python -m pip install --upgrade pip setuptools jsonschema
36
+ # If we don't install pycodestyle, pylint will throw an unused-argument error in pylsp/plugins/pycodestyle_lint.py:72
37
+ # This error cannot be resolved by adding a pylint: disable=unused-argument comment ...
38
+ - run: |
39
+ pip install -e .[pylint,pycodestyle]
40
+ pip install ruff==0.9.4
41
+ - name: ruff linter and code style checks
42
+ run: ruff check pylsp test
43
+ - name: ruff code formatter check
44
+ run: ruff format --check pylsp test
45
+ - name: Validate JSON schema
46
+ run: echo {} | jsonschema pylsp/config/schema.json
47
+ - name: Ensure JSON schema and Markdown docs are in sync
48
+ run: |
49
+ python scripts/jsonschema2md.py pylsp/config/schema.json EXPECTED_CONFIGURATION.md
50
+ diff EXPECTED_CONFIGURATION.md CONFIGURATION.md
@@ -0,0 +1,52 @@
1
+ name: Linux tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - develop
7
+
8
+ pull_request:
9
+ branches:
10
+ - '*'
11
+
12
+ concurrency:
13
+ group: test-linux-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ build:
18
+ name: Linux Py${{ matrix.PYTHON_VERSION }}
19
+ runs-on: ubuntu-latest
20
+ env:
21
+ CI: 'true'
22
+ OS: 'linux'
23
+ PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
24
+ strategy:
25
+ fail-fast: false
26
+ matrix:
27
+ PYTHON_VERSION: ['3.14', '3.13', '3.12', '3.11', '3.10', '3.9']
28
+ timeout-minutes: 10
29
+ steps:
30
+ - uses: actions/cache@v4
31
+ with:
32
+ path: ~/.cache/pip
33
+ key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('pyproject.toml') }}
34
+ restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
35
+ - uses: actions/checkout@v4
36
+ - uses: actions/setup-python@v5
37
+ with:
38
+ python-version: ${{ matrix.PYTHON_VERSION }}
39
+ architecture: 'x64'
40
+ - name: Create Jedi environment for testing
41
+ run: |
42
+ python3 -m venv /tmp/pyenv
43
+ /tmp/pyenv/bin/python -m pip install loghub
44
+ - run: python -m pip install --upgrade pip setuptools
45
+ - run: pip install -e .[all,test]
46
+ - name: Show test environment
47
+ run: pip list
48
+ - run: pytest --color=yes -v test/
49
+ # Enable this if SSH debugging is required
50
+ # - name: Setup tmate session
51
+ # uses: mxschmitt/action-tmate@v3
52
+ # if: ${{ failure() }}
@@ -0,0 +1,52 @@
1
+ name: Mac tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - develop
7
+
8
+ pull_request:
9
+ branches:
10
+ - '*'
11
+
12
+ concurrency:
13
+ group: test-mac-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ build:
18
+ name: Mac Py${{ matrix.PYTHON_VERSION }}
19
+ runs-on: macos-13
20
+ env:
21
+ CI: 'true'
22
+ OS: 'macos'
23
+ PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
24
+ strategy:
25
+ fail-fast: false
26
+ matrix:
27
+ PYTHON_VERSION: ['3.14', '3.12', '3.9']
28
+ timeout-minutes: 10
29
+ steps:
30
+ - uses: actions/cache@v4
31
+ with:
32
+ path: ~/Library/Caches/pip
33
+ key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('pyproject.toml') }}
34
+ restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
35
+ - uses: actions/checkout@v4
36
+ - uses: actions/setup-python@v5
37
+ with:
38
+ python-version: ${{ matrix.PYTHON_VERSION }}
39
+ architecture: 'x64'
40
+ - name: Create Jedi environment for testing
41
+ run: |
42
+ python3 -m venv /tmp/pyenv
43
+ /tmp/pyenv/bin/python -m pip install loghub
44
+ - run: python -m pip install --upgrade pip setuptools
45
+ - run: pip install -e .[all,test]
46
+ - name: Show test environment
47
+ run: pip list
48
+ - run: pytest --color=yes -v test/
49
+ # Enable this if SSH debugging is required
50
+ # - name: Setup tmate session
51
+ # uses: mxschmitt/action-tmate@v3
52
+ # if: ${{ failure() }}
@@ -0,0 +1,44 @@
1
+ name: Windows tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - develop
7
+
8
+ pull_request:
9
+ branches:
10
+ - '*'
11
+
12
+ concurrency:
13
+ group: test-win-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ build:
18
+ name: Win Py${{ matrix.PYTHON_VERSION }}
19
+ runs-on: windows-latest
20
+ env:
21
+ CI: 'true'
22
+ OS: 'win'
23
+ PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
24
+ strategy:
25
+ fail-fast: false
26
+ matrix:
27
+ PYTHON_VERSION: ['3.14', '3.12', '3.9']
28
+ timeout-minutes: 10
29
+ steps:
30
+ - uses: actions/cache@v4
31
+ with:
32
+ path: ~\AppData\Local\pip\Cache
33
+ key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('pyproject.toml') }}
34
+ restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
35
+ - uses: actions/checkout@v4
36
+ - uses: actions/setup-python@v5
37
+ with:
38
+ python-version: ${{ matrix.PYTHON_VERSION }}
39
+ architecture: 'x64'
40
+ - run: python -m pip install --upgrade pip setuptools
41
+ - run: pip install -e .[all,test]
42
+ - name: Show test environment
43
+ run: pip list
44
+ - run: pytest --color=yes -v test/
@@ -0,0 +1,123 @@
1
+ # autogenerated version file
2
+ /pylsp/_version.py
3
+
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+
9
+ # Mypy cache
10
+ .mypy_cache/
11
+
12
+ # IntelliJ
13
+ *.iml
14
+ *.ipr
15
+ *.iws
16
+ .idea/
17
+ out/
18
+
19
+ # C extensions
20
+ *.so
21
+
22
+ # Distribution / packaging
23
+ .Python
24
+ env/
25
+ env3/
26
+ build/
27
+ develop-eggs/
28
+ dist/
29
+ downloads/
30
+ eggs/
31
+ .eggs/
32
+ lib/
33
+ lib64/
34
+ parts/
35
+ sdist/
36
+ var/
37
+ *.egg-info/
38
+ .installed.cfg
39
+ *.egg
40
+
41
+ # PyInstaller
42
+ # Usually these files are written by a python script from a template
43
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
44
+ *.manifest
45
+ *.spec
46
+
47
+ # Installer logs
48
+ pip-log.txt
49
+ pip-delete-this-directory.txt
50
+
51
+ # Unit test / coverage reports
52
+ htmlcov/
53
+ .tox/
54
+ .coverage
55
+ .coverage.*
56
+ .cache
57
+ nosetests.xml
58
+ coverage.xml
59
+ *,cover
60
+ .hypothesis/
61
+ pytest.xml
62
+ .pytest_cache/
63
+
64
+ # Translations
65
+ *.mo
66
+ *.pot
67
+
68
+ # Django stuff:
69
+ *.log
70
+ local_settings.py
71
+
72
+ # Flask stuff:
73
+ instance/
74
+ .webassets-cache
75
+
76
+ # Scrapy stuff:
77
+ .scrapy
78
+
79
+ # Sphinx documentation
80
+ docs/_build/
81
+
82
+ # PyBuilder
83
+ target/
84
+
85
+ # IPython Notebook
86
+ .ipynb_checkpoints
87
+
88
+ # pyenv
89
+ .python-version
90
+
91
+ # celery beat schedule file
92
+ celerybeat-schedule
93
+
94
+ # dotenv
95
+ .env
96
+
97
+ # virtualenv
98
+ venv/
99
+ ENV/
100
+
101
+ # Spyder project settings
102
+ .spyderproject
103
+
104
+ # Rope project settings
105
+ .ropeproject
106
+
107
+ # JavaScript
108
+ **/*.vscode/
109
+
110
+ # vim
111
+ *.sw[mnopqrs]
112
+
113
+ # Idea
114
+ .idea/
115
+
116
+ # Merge orig files
117
+ *.orig
118
+
119
+ # Special files
120
+ .DS_Store
121
+ *.temp
122
+
123
+ .venv
@@ -0,0 +1,100 @@
1
+ # Excavator auto-updates this file. Please contribute improvements to the central template.
2
+
3
+ policy:
4
+ approval:
5
+ - or:
6
+ - one admin or contributor has approved
7
+ - two admins have approved
8
+ - changelog only and contributor approval
9
+ - fixing excavator
10
+ - excavator only touched baseline, circle, gradle files, godel files, docker-compose-rule config or versions.props
11
+ - excavator only touched config files
12
+ - bots updated package.json and lock files
13
+ disapproval:
14
+ requires:
15
+ organizations: [ "palantir" ]
16
+
17
+ approval_rules:
18
+ - name: one admin or contributor has approved
19
+ options:
20
+ allow_contributor: true
21
+ requires:
22
+ count: 1
23
+ admins: true
24
+
25
+ - name: two admins have approved
26
+ options:
27
+ allow_contributor: true
28
+ requires:
29
+ count: 2
30
+ admins: true
31
+
32
+ - name: changelog only and contributor approval
33
+ options:
34
+ allow_contributor: true
35
+ requires:
36
+ count: 1
37
+ admins: true
38
+ if:
39
+ only_changed_files:
40
+ paths:
41
+ - "changelog/@unreleased/.*\\.yml"
42
+
43
+ - name: fixing excavator
44
+ options:
45
+ allow_contributor: true
46
+ requires:
47
+ count: 1
48
+ admins: true
49
+ if:
50
+ has_author_in:
51
+ users: [ "svc-excavator-bot" ]
52
+
53
+ - name: excavator only touched baseline, circle, gradle files, godel files, docker-compose-rule config or versions.props
54
+ requires:
55
+ count: 0
56
+ if:
57
+ has_author_in:
58
+ users: [ "svc-excavator-bot" ]
59
+ only_changed_files:
60
+ # product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
61
+ # this way excavator cannot change the deployability of a service or product via auto-merge
62
+ paths:
63
+ - "changelog/@unreleased/.*\\.yml"
64
+ - "^\\.baseline/.*$"
65
+ - "^\\.circleci/.*$"
66
+ - "^\\.docker-compose-rule\\.yml$"
67
+ - "^.*gradle$"
68
+ - "^gradle/wrapper/.*"
69
+ - "^gradlew$"
70
+ - "^gradlew.bat$"
71
+ - "^gradle.properties$"
72
+ - "^settings.gradle$"
73
+ - "^godelw$"
74
+ - "^godel/config/godel.properties$"
75
+ - "^versions.props$"
76
+ - "^versions.lock$"
77
+
78
+ - name: excavator only touched config files
79
+ requires:
80
+ count: 0
81
+ if:
82
+ has_author_in:
83
+ users: [ "svc-excavator-bot" ]
84
+ only_changed_files:
85
+ paths:
86
+ - "^\\..*.yml$"
87
+ - "^\\.github/.*$"
88
+
89
+ - name: bots updated package.json and lock files
90
+ requires:
91
+ count: 0
92
+ if:
93
+ has_author_in:
94
+ users:
95
+ - "svc-excavator-bot"
96
+ - "dependabot[bot]"
97
+ only_changed_files:
98
+ paths:
99
+ - "^.*yarn.lock$"
100
+ - "^.*package.json$"
@@ -0,0 +1 @@
1
+ https://www.spyder-ide.org/funding.json