-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add dependencies to pixi.toml * Pixi-ize pre-commit * Add pixi tasks * Update CI * Fix build dependencies * update lockfile * Fix doctest * Try to fix readthedocs * Use latest pixi on conda-forge * Find some minimum versions * Bump minimum formulaic version * Find minimum numpy version * Make polars a test dependency * Update lockfile * Fix typing issues * Fix benchmarks * Update contributing docs * Make ruff happy * Remove unnecessary pre-commit option from CI
- Loading branch information
Showing
22 changed files
with
18,382 additions
and
266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML linguist-generated=true |
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
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,16 +1,47 @@ | ||
exclude: ^.pixi$ | ||
repos: | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-ruff | ||
rev: 0.6.2 | ||
- repo: local | ||
hooks: | ||
- id: ruff-conda | ||
- id: ruff-format-conda | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-mypy | ||
rev: "1.10.1" | ||
hooks: | ||
- id: mypy-conda | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-cython-lint | ||
rev: 0.16.2 | ||
hooks: | ||
- id: cython-lint-conda | ||
args: [--no-pycodestyle] | ||
- id: double-quote-cython-strings-conda | ||
# ensure pixi environments are up to date | ||
# workaround for https://github.com/prefix-dev/pixi/issues/1482 | ||
- id: pixi-install | ||
name: pixi-install | ||
entry: pixi install -e default -e lint | ||
language: system | ||
always_run: true | ||
require_serial: true | ||
pass_filenames: false | ||
# ruff | ||
- id: ruff | ||
name: ruff | ||
entry: pixi run -e lint ruff check --fix --exit-non-zero-on-fix --force-exclude | ||
language: system | ||
types_or: [python, pyi] | ||
require_serial: true | ||
- id: ruff-format | ||
name: ruff-format | ||
entry: pixi run -e lint ruff format --force-exclude | ||
language: system | ||
types_or: [python, pyi] | ||
require_serial: true | ||
# mypy | ||
- id: mypy | ||
name: mypy | ||
entry: pixi run -e default mypy --allow-redefinition | ||
exclude: (^tests/) | ||
language: system | ||
types: [python] | ||
require_serial: true | ||
# cython-lint | ||
- id: cython-lint | ||
name: cython-lint | ||
entry: pixi run -e lint cython-lint --no-pycodestyle | ||
language: system | ||
types: [cython] | ||
require_serial: true | ||
- id: cython-double-quote | ||
name: cython-double-quote | ||
entry: pixi run -e lint double-quote-cython-strings | ||
language: system | ||
types: [cython] | ||
require_serial: true |
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
Oops, something went wrong.