193827e27b
So now you control the logging and the debugging from the shell through the logger with the name 'scrapling'
1.9 KiB
1.9 KiB
Contributing to Scrapling
Everybody is invited and welcome to contribute to Scrapling. Smaller changes have a better chance to get included in a timely manner. Adding unit tests for new features or test cases for bugs you've fixed help us to ensure that the Pull Request (PR) is fine.
There is a lot to do...
- If you are not a developer perhaps you would like to help with the documentation?
- If you are a developer, most of the features I'm planning to add in the future are moved to roadmap file so consider reading it.
Scrapling includes a comprehensive test suite which can be executed with pytest:
$ pytest
=============================== test session starts ===============================
platform darwin -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
rootdir: /<some_where>/Scrapling
configfile: pytest.ini
plugins: cov-5.0.0, anyio-4.6.0
collected 16 items
tests/test_parser_functions.py ................ [100%]
=============================== 16 passed in 0.22s ================================
Also, consider setting the scrapling logging level to debug so it's easier to know what's happening in the background.
>>> import logging
>>> logging.getLogger("scrapling").setLevel(logging.DEBUG)
The process is straight-forward.
- Read How to get faster PR reviews by Kubernetes (but skip step 0 and 1)
- Fork Scrapling git repository.
- Make your changes.
- Ensure tests work.
- Create a Pull Request against the dev branch of Scrapling.
Installing the latest changes from the dev branch
pip3 install git+https://github.com/D4Vinci/Scrapling.git@dev