-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate scripts and python package (#238)
* some functionality from `scripts/` would be useful inside the library * some functionality from the library was replicated in `scripts/` -> consolidate (see also #208), turn separate scripts into entrypoints (currently prefixed with `bmp-` from Benchmark-Models-Petab) * Reduce number of package configuration files * replace isort/flake/... by ruff * Problem feature table accessible through the library (closes #169) * `--help` for the overview table entrypoint * Extend overview table: add objective priors (Closes #232
- Loading branch information
Showing
19 changed files
with
443 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,40 @@ | ||
files: src/python | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 23.7.0 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: black | ||
description: The uncompromising code formatter | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
- id: check-yaml | ||
description: Check yaml files for parseable syntax | ||
- id: check-added-large-files | ||
description: Prevent large files from being committed | ||
- id: check-merge-conflict | ||
description: Check for files that contain merge conflict strings | ||
- id: check-symlinks | ||
description: Check for symlinks which do not point to anything | ||
- id: check-executables-have-shebangs | ||
description: Check that (non-binary) executables have shebangs | ||
- id: detect-private-key | ||
description: Detects the presence of private keys | ||
- id: end-of-file-fixer | ||
description: Fix empty lines at ends of files | ||
- id: mixed-line-ending | ||
description: Replace or check mixed line endings | ||
- id: trailing-whitespace | ||
description: Trim trailing whitespaces | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.6.7 | ||
hooks: | ||
- id: isort | ||
name: isort | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: [--config, src/python/setup.cfg] | ||
additional_dependencies: [flake8-docstrings] | ||
# Run the linter. | ||
- id: ruff | ||
args: | ||
- --fix | ||
- --config | ||
- src/python/pyproject.toml | ||
|
||
# Run the formatter. | ||
- id: ruff-format | ||
args: | ||
- --config | ||
- src/python/pyproject.toml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.