Skip to content

Commit 873de35

Browse files
authored
Merge pull request #1041 from compas-dev/black_formatting
replaced autopep8 with black
2 parents c504b9d + 82d5ed6 commit 873de35

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828
* Fixed bug in `compas.robots.Configuration`.
2929
* Rebuild part index after deserialization in `Assembly`.
3030
* Fixed bug in `compas.artists.colordict.ColorDict`.
31-
* Change `Mesh.mesh_dual` with option of including the boundary.
31+
* Change `Mesh.mesh_dual` with option of including the boundary.
32+
* Moved from `autopep8` to `black`
3233
* Fixed bug in `compas.utilities.linspace` for number series with high precision start and stop values.
3334

3435
### Removed

CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ In short, this is how that works.
3737
```
3838

3939
5. Start making your changes to the **master** branch (or branch off of it).
40-
6. Make sure all tests still pass:
40+
6. Auto-format your code using `black -l 180 <path_to_source_file>`.
41+
7. Make sure all tests still pass:
4142

4243
```bash
4344
invoke test
4445
```
4546

46-
7. Add yourself to `AUTHORS.md`.
47-
8. Commit your changes and push your branch to GitHub.
48-
9. Create a [pull request](https://help.github.com/articles/about-pull-requests/) through the GitHub website.
47+
8. Add yourself to `AUTHORS.md`.
48+
9. Commit your changes and push your branch to GitHub.
49+
10. Create a [pull request](https://help.github.com/articles/about-pull-requests/) through the GitHub website.
4950

5051
During development, use [pyinvoke](http://docs.pyinvoke.org/) tasks on the
5152
command line to ease recurring operations:

docs/devguide.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ The procedure for submitting a PR is the following.
7474
Style guide
7575
===========
7676

77+
Please run `black -l 180 <path_to_source_file>` to auto-format your code.
78+
7779
The command ``invoke lint`` runs the entire codebase through ``flake8``.
7880
As described in the `docs <https://flake8.pycqa.org/en/latest/manpage.html>`_,
7981
``flake8`` includes lint checks provided by the PyFlakes project,

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
autopep8
1+
black
22
attrs >=17.4
33
bump2version >=1.0.1
44
check-manifest >=0.36

0 commit comments

Comments
 (0)