Skip to content

Commit 5c4dc8c

Browse files
committed
Merge branch 'master' into optuna
2 parents 0929d18 + 65e4f47 commit 5c4dc8c

141 files changed

Lines changed: 1367 additions & 849 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ pip-delete-this-directory.txt
4040

4141
# Dev
4242
**/_dev_scripts
43+
*.code-workspace
4344

4445
# Unit test / coverage reports
4546
htmlcov/

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Solving an issue with a pull request is one of the most difficult ways to contri
6363

6464
## Open an issue
6565

66-
You can contribute to this project by opening an issue. This could be a question, a bug report, a feature request or other types. In any case you should do a search beforehand to confirm, that a similar issue has not already been opened.
66+
You can contribute to this project by opening an issue. This could be a question, a bug report, a feature request or other types. In any case you should do a search beforehand to confirm, that a similar issue has not already been opened.
6767

6868

6969
<br>
@@ -88,7 +88,7 @@ This could be a feature that could be very useful for your work, an interesting
8888

8989

9090
<br>
91-
91+
9292
---
9393

9494
<br>

Makefile

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,82 @@ install-editable:
9494

9595
reinstall: uninstall install
9696

97-
reinstall-editable: uninstall install-editable
97+
reinstall-editable: uninstall install-editable
98+
99+
# === Linting and Formatting Commands ===
100+
101+
# Run ruff linter to check for code issues
102+
lint:
103+
ruff check .
104+
105+
# Run ruff linter with auto-fix for fixable issues
106+
lint-fix:
107+
ruff check --fix .
108+
109+
# Format code using ruff formatter
110+
format:
111+
ruff format .
112+
113+
# Check formatting without making changes
114+
format-check:
115+
ruff format --check .
116+
117+
# Sort imports using ruff (isort functionality)
118+
isort:
119+
ruff check --select I --fix .
120+
121+
# Check import sorting without making changes
122+
isort-check:
123+
ruff check --select I .
124+
125+
# Run all code quality checks (lint + format check + import check)
126+
check: lint format-check isort-check
127+
128+
# Fix all auto-fixable issues (lint + format + imports)
129+
fix: lint-fix format isort
130+
131+
# === Notebook-specific Commands ===
132+
133+
# Run ruff on Jupyter notebooks
134+
lint-notebooks:
135+
ruff check --include="*.ipynb" .
136+
137+
# Fix ruff issues in Jupyter notebooks
138+
lint-notebooks-fix:
139+
ruff check --include="*.ipynb" --fix .
140+
141+
# Format Jupyter notebooks with black via nbqa
142+
format-notebooks:
143+
pre-commit run nbqa-black --all-files
144+
145+
# Run all notebook checks and fixes
146+
notebooks-fix: lint-notebooks-fix format-notebooks
147+
148+
# === Pre-commit Commands ===
149+
150+
# Install pre-commit hooks
151+
pre-commit-install:
152+
pre-commit install
153+
154+
# Run pre-commit on all files
155+
pre-commit-all:
156+
pre-commit run --all-files
157+
158+
# Run pre-commit on staged files only
159+
pre-commit:
160+
pre-commit run
161+
162+
# Update pre-commit hooks to latest versions
163+
pre-commit-update:
164+
pre-commit autoupdate
165+
166+
# === Combined Quality Commands ===
167+
168+
# Run comprehensive code quality checks
169+
quality-check: check lint-notebooks
170+
171+
# Fix all code quality issues
172+
quality-fix: fix notebooks-fix
173+
174+
# Full quality workflow: install hooks, fix issues, run final check
175+
quality: pre-commit-install quality-fix quality-check

0 commit comments

Comments
 (0)