@@ -29,7 +29,6 @@ use the [pywikibot framework](https://www.mediawiki.org/wiki/Manual:Pywikibot).
2929 * [ License] ( #license )
3030 * [ Contributing and coding conventions] ( #contributing-and-coding-conventions )
3131 * [ Communication] ( #communication )
32- * [ Credits] ( #credits )
3332<!-- TOC -->
3433
3534## Setup
@@ -94,22 +93,23 @@ stored in `pywikibot-[UserName].lwp` so you don't have to log in every time.
9493
9594## Testing and ensuring good code quality
9695
97- From your base pywikitools path, use the following command to run the test
98- suite.
96+ From your base pywikitools path (with the virtual environment set up):
9997
10098```shell
101- $ python -m unittest discover -s pywikitools/test
99+ $ make test # run the test suite
100+ $ make lint # check style with flake8
101+ $ make coverage # coverage report; opens htmlcov/ in your browser
102102```
103103
104- Also, run the next command to check for linting issues
104+ The same commands without `make`:
105105
106106```shell
107- $ flake8
107+ $ python -m unittest discover -s pywikitools/test
108+ $ flake8 .
108109```
109110
110- With `GitHub Actions` these two commands are automatically run also on every
111- push or pull request in the repository. The goal is to cover all important code
112- with good test coverage.
111+ With `GitHub Actions` tests and linting run automatically on every push or pull
112+ request. The goal is to cover all important code with good test coverage.
113113
114114Some tests are making real API calls, that' s why running the tests can
115115take half a
@@ -139,7 +139,7 @@ Which username should it use?
139139correct_bot.py
140140: Automatically correct simple mistakes in texts of different languages.
141141
142- resources_bot .py
142+ resourcesbot .py
143143: Automatically scan through all available translations, gather information on
144144each language and do many useful things with this information.
145145Such as filling out the “Available training resources in...”
@@ -187,11 +187,4 @@ For more details, see CONTRIBUTING.md
187187
188188Please subscribe to the repository to get informed on changes. We use GitHub
189189issues for specific tasks, wishes, bugs, etc. Please don’t hesitate to open
190- a new one! Assign yourself to the issues that you plan to work on.
191-
192- # # Credits
193-
194- This package was created
195- with [Cookiecutter](https://github.com/audreyr/cookiecutter) and
196- the [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage)
197- project template.
190+ a new one! Assign yourself to the issues that you plan to work on.
0 commit comments