@@ -17,11 +17,11 @@ the preferred channel for [bug reports](#bug-reports), [feature requests](#featu
17
17
and [ submitting pull requests] ( #pull-requests ) , but please respect the following
18
18
restrictions:
19
19
20
- * Please ** do not** use the issue tracker for personal support requests. Stack
20
+ - Please ** do not** use the issue tracker for personal support requests. Stack
21
21
Overflow ([ ` plotly-dash ` ] ( https://stackoverflow.com/questions/tagged/plotly-dash ) tag),
22
22
or the [ Plotly Community Forum] ( https://community.plot.ly ) are better places to get help.
23
23
24
- * Please ** do not** derail or troll issues. Keep the discussion on topic and
24
+ - Please ** do not** derail or troll issues. Keep the discussion on topic and
25
25
respect the opinions of others.
26
26
27
27
## Bug reports
@@ -52,7 +52,7 @@ miss out any of these details when filing a [new bug report][new-bug-report].
52
52
## Feature requests
53
53
54
54
Feature requests are welcome. But take a moment to find out whether your idea
55
- fits with the scope and aims of the project. It's up to * you * to make a strong
55
+ fits with the scope and aims of the project. It's up to _ you _ to make a strong
56
56
case to convince the project's developers of the merits of this feature. Please
57
57
provide as much detail and context as possible. We have a feature request
58
58
template you can use when filing a [ new feature request] [ new-feature-request ] .
@@ -120,7 +120,7 @@ included in the project:
120
120
```
121
121
122
122
7 . [ Open a Pull Request] ( https://help.github.com/articles/about-pull-requests/ )
123
- with a clear title and description against the ` main ` branch.
123
+ with a clear title and description against the ` main ` branch.
124
124
125
125
** IMPORTANT** : By submitting a patch, you agree to allow the project owners to
126
126
license your work under the terms of the [ Apache 2.0 License] ( ../LICENSE ) .
@@ -129,15 +129,34 @@ license your work under the terms of the [Apache 2.0 License](../LICENSE).
129
129
130
130
### Python
131
131
132
- Please use [ black] ( https://github.com/python/black ) with ` --line-length 79 ` to
133
- format any Python code. To do so, simply run the following from the root of
134
- the repository
132
+ We use [ ` nox ` ] ( https://nox.thea.codes/en/stable/ ) to test and line Python code.
135
133
136
134
``` sh
137
- pip install black
138
- black --line-length 79 .
135
+ pip install nox
139
136
```
140
137
138
+ Code is linted using ` black ` , ` flake8 ` , and ` isort ` . Run the linters with
139
+
140
+ ``` sh
141
+ nox -s lint
142
+ ```
143
+
144
+ Many formatting issues can be fixed automatically by ` black ` and ` isort ` . Run
145
+ them with
146
+
147
+ ``` sh
148
+ nox -s format
149
+ ```
150
+
151
+ Finally you can run the Python tests locally for a particular version of Python
152
+ with
153
+
154
+ ``` sh
155
+ nox -s test-3.8
156
+ ```
157
+
158
+ and similarly for other versions.
159
+
141
160
### JS
142
161
143
162
Prettier to format JavaScript code as configured in ` .prettierrc ` . You can lint
@@ -155,27 +174,26 @@ npm run format
155
174
156
175
### Run tests
157
176
158
- Run ` npm run test ` before committing to ensure your changes follow our coding
159
- standards and pass our tests.
177
+ Run ` npm run test ` before committing to ensure your changes pass our tests.
160
178
161
179
## Building dash-bootstrap-components locally
162
180
163
181
To build _ dash-bootstrap-components_ locally, first install the Python
164
182
development dependencies
165
183
166
- ```
184
+ ``` sh
167
185
python -m pip install -r requirements-dev.txt
168
186
```
169
187
170
188
Then install JavaScript dependencies
171
189
172
- ```
190
+ ``` sh
173
191
npm install
174
192
```
175
193
176
194
You can now build Python, R and Julia packages with
177
195
178
- ```
196
+ ``` sh
179
197
npm run build
180
198
```
181
199
0 commit comments