-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintenance of configs and update README (#229)
* Edit pre-commit config to fix missing `wheel` dependency * Check if problem is macos15 * Update pyproject.toml to match movement * Update precommit to match movement * Add precommit CI * Run CI on intel macOS and macos-15 * Make new precommits happy * Make new precommits happy * Some more pre-commit changes * Make ruff precommit happy with tests - pending mypy * Make mypy pass * Remove sleap comment * Update readme * Fix test with typer and ellipsis in argument * Remove macOS-15 from CI * Fixed check-manifest issue * Update evaluate command description * Update readme and cli help * Change cli of detect+track to better match the other entry points. Simplify structure of outputs. * Update readme of detect+track to reflect current status * Fix test on track video CLI
- Loading branch information
Showing
43 changed files
with
1,001 additions
and
716 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,66 @@ | ||
# exclude: 'conf.py' --- relevant for docs | ||
# Configuring https://pre-commit.ci/ | ||
ci: | ||
autoupdate_schedule: monthly | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.0-alpha.9-for-vscode | ||
hooks: | ||
- id: prettier | ||
args: [--ignore-path=guides/CorrectingTrackLabellingSteps.md] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-docstring-first | ||
# - id: check-executables-have-shebangs TODO: fix later | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
args: [--fix=lf] | ||
- id: trailing-whitespace | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.0.280 | ||
hooks: | ||
- id: ruff | ||
- repo: https://github.com/psf/black | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.3.0 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- types-setuptools | ||
- repo: https://github.com/mgedmin/check-manifest | ||
rev: "0.49" | ||
hooks: | ||
- id: check-manifest | ||
args: [--no-build-isolation] | ||
additional_dependencies: [setuptools-scm] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
args: [--fix=lf] | ||
- id: name-tests-test | ||
args: ["--pytest-test-first"] | ||
exclude: ^tests/fixtures | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
# - repo: https://github.com/pre-commit/pygrep-hooks | ||
# rev: v1.10.0 | ||
# hooks: | ||
# - id: rst-backticks | ||
# - id: rst-directive-colons | ||
# - id: rst-inline-touching-normal | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.9 | ||
hooks: | ||
- id: ruff | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.11.2 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- attrs | ||
- types-setuptools | ||
- pandas-stubs | ||
- types-attrs | ||
- types-PyYAML | ||
- types-requests | ||
- repo: https://github.com/mgedmin/check-manifest | ||
rev: "0.49" | ||
hooks: | ||
- id: check-manifest | ||
args: [--no-build-isolation] | ||
additional_dependencies: [setuptools-scm] | ||
# - repo: https://github.com/codespell-project/codespell | ||
# # Configuration for codespell is in pyproject.toml | ||
# rev: v2.3.0 | ||
# hooks: | ||
# - id: codespell | ||
# additional_dependencies: | ||
# # tomli dependency can be removed when we drop support for Python 3.10 | ||
# - tomli | ||
exclude: | | ||
(?x)( | ||
^notebooks/| | ||
^tests/data/ | ||
) |
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,3 +1,5 @@ | ||
"""Pytest configuration file.""" | ||
|
||
pytest_plugins = [ | ||
"tests.fixtures.frame_extraction", | ||
] |
Oops, something went wrong.