@@ -78,9 +78,10 @@ To build arduino-lint from sources you need the following tools to be available
78
78
- [ Go] ( https://golang.org/doc/install ) version 1.14 or later
79
79
- [ Taskfile] ( https://taskfile.dev/#/installation ) to help you run the most common tasks from the command line
80
80
81
- If you want to run integration tests you will also need:
81
+ If you want to run integration tests or work on documentation, you will also need:
82
82
83
- - A working [ Python] ( https://www.python.org/downloads/ ) environment, version 3.8 or later
83
+ - A working [ Python] ( https://www.python.org/downloads/ ) environment, version 3.8 or later.
84
+ - [ Poetry] ( https://python-poetry.org/docs/ ) .
84
85
85
86
### Building the source code
86
87
@@ -146,22 +147,6 @@ input and providing the expected output and proper exit codes.
146
147
For these reasons, in addition to regular unit tests the project has a suite of integration tests that actually run
147
148
arduino-lint in a different process and assess the options are correctly understood and the output is what we expect.
148
149
149
- ##### Software requirements for running integration tests:
150
-
151
- A working Python environment. Chances are that you already have Python installed in your system, if this is not the case
152
- you can [ download] ( https://www.python.org/downloads/ ) the official distribution or use the package manager provided by
153
- your Operating System.
154
-
155
- Some dependencies need to be installed before running the tests. To avoid polluting your global Python environment with
156
- dependencies that might be only used by the arduino-lint integration tests, we use [ Poetry] ( https://python-poetry.org/ ) .
157
- First you need to install it (you might need to ` sudo ` the following command):
158
-
159
- ```
160
- pip3 install --user poetry
161
- ```
162
-
163
- For more Poetry installation options read the [ official documentation] ( https://python-poetry.org/docs/ ) .
164
-
165
150
##### Running tests
166
151
167
152
After the software requirements have been installed, you should be able to run the tests with:
@@ -242,16 +227,8 @@ The documentation consists of static content written over several Markdown files
242
227
arduino-lint repository, as well as the dynamically generated [ command line reference] ( commands/arduino-lint.md ) .
243
228
244
229
When working on the documentation, it is useful to be able to see the effect the changes will have on the generated
245
- documentation website. You can build the documentation website and serve it from your personal computer.
246
-
247
- Before running the toolchain, run the following command from the root of the Git repository (if you have a Python
248
- virtual environment, activate it before proceeding):
249
-
250
- ```
251
- pip install -r docs/requirements_docs.txt
252
- ```
253
-
254
- Now run the command:
230
+ documentation website. You can build the documentation website and serve it from your personal computer by running the
231
+ command:
255
232
256
233
```
257
234
task docs:serve
0 commit comments