pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/hlouzada/python-lsp-server/blob/refs/heads/develop-v2.x/CONTRIBUTING.md

69e846088cc1bf.css" /> python-lsp-server/CONTRIBUTING.md at refs/heads/develop-v2.x · hlouzada/python-lsp-server · GitHub
Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.35 KB

File metadata and controls

40 lines (29 loc) · 1.35 KB

Setup the environment

  1. Clone the repo: git clone git@github.com:python-lsp/python-lsp-server.git
  2. Create the virtual environment: python -m venv .venv
  3. Activate: source .venv/bin/activate
  4. Install an editable installation: pip install -e .
    • This will ensure you'll see your edits immediately without reinstalling the project
  5. Configure your editor to point the pylsp executable to the one in .venv

Trying out if it works

Go to file pylsp/python_lsp.py, function start_io_lang_server, and on the first line of the function, add some logging:

log.info("It works!")

Save the file, restart the LSP server and you should see the log line:

2023-10-12 16:46:38,320 CEST - INFO - pylsp._utils - It works!

Now the project is setup in a way you can quickly iterate change you want to add.

Running tests

  1. Install runtime dependencies: pip install .[all]
  2. Install test dependencies: pip install .[test]
  3. Run pytest: pytest -v

Useful pytest options

  • To run a specific test file, use pytest test/test_utils.py
  • To run a specific test function within a test file, use pytest test/test_utils.py::test_debounce
  • To run tests matching a certain expression, use pytest -k format
  • To increase verbosity of pytest, use pytest -v or pytest -vv
  • To enter a debugger on failed tests, use pytest --pdb
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy