Skip to content

Commit

Permalink
CI: Bump pre-commit hooks and fix isort installation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Jan 30, 2023
1 parent 3b53020 commit c9996c2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[flake8]
ignore =
E203, # E203: whitespace before ':'
W503 # W503: line break before binary operator
# E203: whitespace before ':'
E203,
# W503: line break before binary operator
W503
max-line-length = 100
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3.8
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -13,31 +13,31 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.0.0
rev: v9.4.0
hooks:
- id: commitlint
stages:
- commit-msg
additional_dependencies: ['conventional-changelog-conventionalcommits']
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
rev: v2.2.2
hooks:
- id: codespell
args: ["-x", ".codespellignorelines"]
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.1.1
rev: 6.3.0
hooks:
- id: pydocstyle
additional_dependencies: ["toml"]
additional_dependencies: ["tomli"]
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
2 changes: 1 addition & 1 deletion docs/source/synthesis_methodology.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Basically, the workflow used in BBP to generate the cell morphologies is the fol

* collect biological data,
* calibrate the models on these data,
* synthetized the cells according to the calibration parameters.
* synthesized the cells according to the calibration parameters.

This package aims at running the calibration process, then calling each part of the
production workflow on a small use case and computing some validation metrics. Once the
Expand Down
2 changes: 1 addition & 1 deletion src/synthesis_workflow/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def plot_path_distance_fits(
# Plot points
plt.scatter(x, y, c="red", label="Outliers")
plt.scatter(x_clean, y_clean, c="blue", label="Clean points")
plt.scatter(x_synth, y_synth, c="green", label="Synthetized points")
plt.scatter(x_synth, y_synth, c="green", label="Synthesized points")

try:
# Plot fit function
Expand Down
Binary file modified tests/data/in_small_O1/out/validation/path_distance_fit.pdf
Binary file not shown.

0 comments on commit c9996c2

Please sign in to comment.