Skip to content

Commit

Permalink
Updating style
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Apr 12, 2023
1 parent d4bfeb1 commit 1916207
Show file tree
Hide file tree
Showing 5 changed files with 1,091 additions and 1,075 deletions.
3 changes: 1 addition & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Language: Cpp
DerivePointerAlignment: false
PointerAlignment: Left
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: false
AlignEscapedNewlines: DontAlign
AllowShortBlocksOnASingleLine: false
Expand All @@ -27,7 +26,7 @@ BinPackArguments: false
BinPackParameters: false
ExperimentalAutoDetectBinPacking: false
AllowAllParametersOfDeclarationOnNextLine: false

AlignAfterOpenBracket: BlockIndent
# AlwaysBreakAfterDefinitionReturnType: All

BraceWrapping:
Expand Down
27 changes: 18 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.3.0
hooks:
- id: black
args: [--safe, --quiet, --line-length=100]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.3.0
rev: v2.8.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
Expand All @@ -22,25 +22,34 @@ repos:
- id: autoflake
args: [--in-place, --remove-unused-variable, --remove-all-unused-imports]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.1.0
rev: v3.9.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 6.0.0
hooks:
- id: flake8
args: [--max-line-length=100]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.1
rev: v2.2.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
- repo: https://github.com/tdegeus/cpp_comment_format
rev: v0.2.0
hooks:
- id: cpp_comment_format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.0
hooks:
- id: clang-format
args: [-i]
- repo: https://github.com/tdegeus/conda_envfile
rev: v0.4.2
hooks:
- id: conda_envfile_parse
files: environment.yaml
2 changes: 0 additions & 2 deletions examples/overview/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@


def plot_color_gradients(cmap_category, cmap_list, nrows):

fig, axes = plt.subplots(nrows=nrows)
fig.subplots_adjust(top=0.95, bottom=0.01, left=0.2, right=0.99)
axes[0].set_title(cmap_category + " colormaps", fontsize=14)
Expand Down Expand Up @@ -177,7 +176,6 @@ def plot_color_gradients(cmap_category, cmap_list, nrows):


def plot_color_gradients(cmap_category, cmap_list, nrows):

fig, axes = plt.subplots(nrows=nrows)
fig.subplots_adjust(top=0.95, bottom=0.01, left=0.2, right=0.99)
axes[0].set_title(cmap_category, fontsize=14)
Expand Down
Loading

0 comments on commit 1916207

Please sign in to comment.