[pre-commit.ci] pre-commit autoupdate - #28
Open
pre-commit-ci[bot] wants to merge 2 commits into
Open
Conversation
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
June 9, 2025 20:32
33401cc to
a041440
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
from
June 16, 2025 20:07
a041440 to
7147b31
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
June 30, 2025 20:28
f8754e6 to
26f5670
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
July 14, 2025 20:39
53362bf to
db2fe42
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
July 28, 2025 20:47
71f9d5b to
f3d05d0
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
from
August 4, 2025 21:27
f3d05d0 to
1f87039
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
August 18, 2025 21:16
ccf67e2 to
fc595fb
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
from
August 25, 2025 21:02
fc595fb to
d438a7e
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
from
September 1, 2025 21:17
d438a7e to
6597584
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
September 15, 2025 21:19
6a13a0f to
f1e9338
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
September 29, 2025 21:10
3584ede to
160fea0
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
October 13, 2025 21:42
7bf4568 to
16d492a
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
October 27, 2025 21:16
765162b to
e548fea
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
from
November 3, 2025 21:46
4f54ff3 to
ad0d75c
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
November 17, 2025 21:29
ba6c0ac to
149976a
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
from
November 24, 2025 21:55
e833abb to
f9507cc
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
December 8, 2025 22:04
639eee0 to
04597a7
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
December 22, 2025 21:23
cbfc134 to
8ad21d2
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
from
December 29, 2025 20:34
a3846e3 to
a335247
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
January 12, 2026 21:35
da70f60 to
daf8466
Compare
pre-commit-ci
Bot
force-pushed
the
pre-commit-ci-update-config
branch
2 times, most recently
from
January 26, 2026 21:47
7b28b58 to
968875b
Compare
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
Bot
force-pushed
the
pre-commit-ci-update-config
branch
from
February 2, 2026 21:17
a23239c to
4c2466c
Compare
for more information, see https://pre-commit.ci
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>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
updates: