From 6822d87ffd2860ddf1690acf15c5e35c70798083 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Thu, 18 Aug 2022 08:56:01 -0400 Subject: [PATCH] Enforce pycodestyle E266 Too many leading '#' for block comment Removed some double ## in colorbar gallery example to allow this check to pass. --- examples/gallery/embellishments/colorbar.py | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/gallery/embellishments/colorbar.py b/examples/gallery/embellishments/colorbar.py index b6320261fbc..edfbdd5ecb6 100644 --- a/examples/gallery/embellishments/colorbar.py +++ b/examples/gallery/embellishments/colorbar.py @@ -26,11 +26,11 @@ fig = pygmt.Figure() fig.basemap(region=[0, 3, 6, 9], projection="x3c", frame=["af", "WSne+tColorbars"]) -## Create a colorbar designed for seismic tomography - roma +# Create a colorbar designed for seismic tomography - roma # Colorbar is placed at bottom center (BC) by default if no position is given fig.colorbar(cmap="roma", frame=["x+lVelocity", "y+lm/s"]) -## Create a colorbar showing the scientific rainbow - batlow +# Create a colorbar showing the scientific rainbow - batlow fig.colorbar( cmap="batlow", # Colorbar positioned at map coordinates (g) longitude/latitude 0.3/8.7, @@ -41,7 +41,7 @@ scale=100, ) -## Create a colorbar suitable for surface topography - oleron +# Create a colorbar suitable for surface topography - oleron fig.colorbar( cmap="oleron", # Colorbar position justified outside map frame (J) at Middle Right (MR), diff --git a/pyproject.toml b/pyproject.toml index 7bc9de20639..98e76481f6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ max_doc_length = 79 show_source = true [tool.flakeheaven.plugins] -pycodestyle = ["+*", "-E266", "-E501", "-W503"] +pycodestyle = ["+*", "-E501", "-W503"] pyflakes = ["+*", "-F401"] [tool.pytest.ini_options]