-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create draft of pixi.toml * Modify contributing docs to reflect new install process * Auto-update lockfile * Make CI unit tests work with pixi * Add lockfile * Add psutil to test deps * Add oldies tests * Fix test environments * Mske pre-commit hooks use pixi environments * Only use -nauto in CI * Add doctest * Remove update section from pixi.toml * Change ci job name * Remove multiple postinstalls * Pixify daily tests * Find minimum versions that actually work * Make lint environment leaner * Add formlulaic minimum version to oldies * Only run pre-commit on changes in CI * Pin pixi-setup to sha * Fix deps * Minor fixes * Use intel mkl in benchmarks * Try to make docs work * Make installing nigthlies a pixi task (for local use, too) * Fix pyarrow nighly installation * Add test feature to nightly environment * Add environment for simultaneous editable tabmat and glum install * Update dev dependencies * fix mypy quirk * fix mypy typing errors * Address @pavelzw's comments * Remove reference to conda/mamba from contributing instructions Co-authored-by: Jan Tilly <jan.tilly@quantco.com> --------- Co-authored-by: Marc-Antoine Schmidt <marc-antoine.schmidt@quantco.com> Co-authored-by: Jan Tilly <jan.tilly@quantco.com>
- Loading branch information
1 parent
817ac80
commit 2684b86
Showing
20 changed files
with
25,019 additions
and
218 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,3 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML | ||
|
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 |
---|---|---|
|
@@ -147,3 +147,7 @@ pkgs/* | |
*.c | ||
*.cpp | ||
!*tmpl.cpp | ||
# pixi environments | ||
.pixi | ||
*.egg-info | ||
|
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,24 +1,47 @@ | ||
exclude: ^.pixi$ | ||
repos: | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-ruff | ||
rev: 0.4.7 | ||
- repo: local | ||
hooks: | ||
- id: ruff-conda | ||
exclude: ^src/glum_benchmarks/orig_sklearn_fork/ | ||
- id: ruff-format-conda | ||
exclude: ^src/glum_benchmarks/orig_sklearn_fork/ | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-mypy | ||
rev: "1.10.0" | ||
hooks: | ||
- id: mypy-conda | ||
args: | ||
- --check-untyped-defs | ||
- --ignore-missing-imports | ||
- --namespace-packages | ||
# 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 | ||
# 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 | ||
# mypy | ||
- id: mypy | ||
name: mypy | ||
entry: pixi run -e default mypy | ||
exclude: (^tests/|^src/glum_benchmarks/orig_sklearn_fork/) | ||
additional_dependencies: [-c, conda-forge, types-setuptools=67.5, attrs] | ||
- 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 | ||
language: system | ||
types: [python] | ||
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.