Skip to content

[pre-commit.ci] pre-commit autoupdate - #28

Open
pre-commit-ci[bot] wants to merge 2 commits into
mainfrom
pre-commit-ci-update-config
Open

[pre-commit.ci] pre-commit autoupdate#28
pre-commit-ci[bot] wants to merge 2 commits into
mainfrom
pre-commit-ci-update-config

Conversation

@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 33401cc to a041440 Compare June 9, 2025 20:32
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch from a041440 to 7147b31 Compare June 16, 2025 20:07
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from f8754e6 to 26f5670 Compare June 30, 2025 20:28
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 53362bf to db2fe42 Compare July 14, 2025 20:39
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 71f9d5b to f3d05d0 Compare July 28, 2025 20:47
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch from f3d05d0 to 1f87039 Compare August 4, 2025 21:27
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from ccf67e2 to fc595fb Compare August 18, 2025 21:16
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch from fc595fb to d438a7e Compare August 25, 2025 21:02
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch from d438a7e to 6597584 Compare September 1, 2025 21:17
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 6a13a0f to f1e9338 Compare September 15, 2025 21:19
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 3584ede to 160fea0 Compare September 29, 2025 21:10
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 7bf4568 to 16d492a Compare October 13, 2025 21:42
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 765162b to e548fea Compare October 27, 2025 21:16
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch from 4f54ff3 to ad0d75c Compare November 3, 2025 21:46
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from ba6c0ac to 149976a Compare November 17, 2025 21:29
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch from e833abb to f9507cc Compare November 24, 2025 21:55
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 639eee0 to 04597a7 Compare December 8, 2025 22:04
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from cbfc134 to 8ad21d2 Compare December 22, 2025 21:23
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch from a3846e3 to a335247 Compare December 29, 2025 20:34
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from da70f60 to daf8466 Compare January 12, 2026 21:35
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 7b28b58 to 968875b Compare January 26, 2026 21:47
updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0)
- [github.com/rbubley/mirrors-prettier: v3.5.3 → v3.8.1](rbubley/mirrors-prettier@v3.5.3...v3.8.1)
- [github.com/abravalheri/validate-pyproject: v0.24.1 → v0.25](abravalheri/validate-pyproject@v0.24.1...v0.25)
- [github.com/astral-sh/ruff-pre-commit: v0.11.11 → v0.14.14](astral-sh/ruff-pre-commit@v0.11.11...v0.14.14)
- [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.1.0](psf/black-pre-commit-mirror@25.1.0...26.1.0)
- [github.com/keewis/blackdoc: v0.3.9 → v0.4.6](keewis/blackdoc@v0.3.9...v0.4.6)
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch from a23239c to 4c2466c Compare February 2, 2026 21:17
annefou added a commit to annefou/FOSCAT that referenced this pull request Apr 22, 2026
The file was removed from the main branch at some point, causing
pre-commit.ci to fail on all PRs with "not a file" error.
Restored with versions from PR jmdelouis#28.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmdelouis pushed a commit that referenced this pull request Apr 23, 2026
* Fix hardcoded device='cuda' to auto-detect CPU/CUDA

Change default `device` from `'cuda'` to `None` with auto-detection:
`'cuda' if torch.cuda.is_available() else 'cpu'`.

This is fully backwards compatible — on CUDA machines the behaviour
is identical. On CPU-only machines (e.g. Apple Silicon, CI runners),
FOSCAT no longer crashes with a CUDA device error.

Fixed locations:
- SphericalStencil.to_tensor(): use self.device instead of hardcoded 'cuda'
- HOrientedConvol.__init__(): default device=None, auto-detect at init
- HOrientedConvol.make_idx_weights_from_cell_ids(): same pattern
- HOrientedConvol.make_idx_weights_from_one_cell_ids(): same pattern
- HOrientedConvol.make_idx_weights(): same pattern

Note: SphericalStencil.__init__() already had the correct auto-detect
logic (lines 74-75), so only to_tensor() needed fixing there.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Restore .pre-commit-config.yaml (missing from main)

The file was removed from the main branch at some point, causing
pre-commit.ci to fail on all PRs with "not a file" error.
Restored with versions from PR #28.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks"

This reverts commit b3dbd3f.

* Replace pre-commit config with lightweight hooks only

The previous .pre-commit-config.yaml was removed in 7dcae85 because
ruff and black were reformatting the entire codebase. This restores it
with only non-reformatting hooks:

- trailing-whitespace, end-of-file-fixer, check-docstring-first
- check-yaml, check-toml
- validate-pyproject

Ruff, black, prettier, blackdoc, and taplo are intentionally excluded
to avoid touching existing code. They can be re-added incrementally
once the codebase is ready for auto-formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks"

This reverts commit 0e4c9fa.

* Scope pre-commit to read-only checks, disable autofix

Remove trailing-whitespace and end-of-file-fixer hooks — they modify
23+ existing source files in the codebase. Keep only read-only checks
(check-yaml, check-toml, validate-pyproject) that report issues
without modifying files. Disable autofix_prs to prevent pre-commit.ci
from pushing auto-fix commits.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants