Skip to content

Commit 6b5c1b6

Browse files
committed
use black
1 parent 3f9deb8 commit 6b5c1b6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323

2424
* Fixed `Color.__get___` AttributeError.
2525
* Fixed `cylinder_to_rhino` conversion to match `compas.geometry.Cylinder` location.
26+
* Changed linter to `black`.
2627

2728
### Removed
2829

src/compas/artists/meshartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class MeshArtist(Artist):
9494

9595
color = Color.from_hex("#0092D2").lightened(50)
9696

97-
default_vertexcolor = Color.from_hex("#0092D2")
97+
default_vertexcolor = Color.from_hex('#0092D2')
9898
default_edgecolor = Color.from_hex("#0092D2")
9999
default_facecolor = Color.from_hex("#0092D2").lightened(50)
100100

tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ def docs(ctx, doctest=False, rebuild=False, check_links=False):
129129
@task()
130130
def lint(ctx):
131131
"""Check the consistency of coding style."""
132-
log.write("Running flake8 python linter...")
133-
ctx.run("flake8 src")
132+
log.write("Running black python linter...")
133+
ctx.run("black --check --diff --color src tests")
134134

135135

136136
@task()

0 commit comments

Comments
 (0)