-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] Add a CI check for the doc being properly generated
And cleanup the doc about dev installation for contributors.
- Loading branch information
1 parent
d4f985d
commit f945d38
Showing
5 changed files
with
48 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 31 additions & 12 deletions
43
doc/development_guide/contributor_guide/tests/install.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,44 @@ | ||
Installation | ||
============ | ||
.. _contributor_install: | ||
|
||
Contributor installation | ||
======================== | ||
|
||
Basic installation | ||
------------------ | ||
|
||
Pylint is developed using the git_ distributed version control system. | ||
|
||
You can clone Pylint using :: | ||
|
||
git clone https://github.com/PyCQA/pylint | ||
|
||
Before you start testing your code, you need to install your source-code package locally. | ||
Suppose you have cloned pylint into a directory, say ``my-pylint``. | ||
To set up your environment for testing, open a terminal and run:: | ||
Suppose you just cloned pylint with the previous ``git clone`` command. To set up your | ||
environment for testing, open a terminal and run:: | ||
|
||
cd my-pylint | ||
cd pylint | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements_test_min.txt | ||
|
||
This ensures your testing environment is similar to Pylint's testing environment on GitHub. | ||
|
||
If you're testing new changes in astroid you need to clone astroid_ and install | ||
with an editable installation as follows:: | ||
**Optionally** (Because there's an auto-fix if you open a merge request): We have pre-commit hooks which should take | ||
care of the autoformatting for you before each commits. To enable it, run ``pre-commit install`` in the ``pylint`` | ||
root directory. | ||
|
||
git clone https://github.com/PyCQA/astroid.git | ||
cd astroid | ||
python3 -m pip install -e . | ||
**Even more optionally**: You can enable slow on push hooks with ``pre-commit install --install-hooks -t pre-push``. It | ||
will do slow checks like checking that the generated documentation is up to date before each push. | ||
|
||
If you want to check the coverage locally, consider using `pytest-cov`_:: | ||
Astroid installation | ||
-------------------- | ||
|
||
python3 -m pip install pytest-cov | ||
If you're testing new changes in astroid you need to also clone astroid_ and install | ||
with an editable installation as follows:: | ||
|
||
git clone https://github.com/PyCQA/astroid.git | ||
python3 -m pip install -e astroid/ | ||
|
||
.. _pytest-cov: https://pypi.org/project/pytest-cov/ | ||
.. _astroid: https://github.com/pycqa/astroid | ||
.. _git: https://git-scm.com/ |