Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v7
- uses: actions/download-artifact@v8
with:
name: Packages
path: dist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:

- name: Upload artifacts
if: env.pinned == 'false'
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: results-pypsa-eur-${{ matrix.version }}
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

- name: Set up windows package manager
if: matrix.os == 'windows-latest'
uses: crazy-max/ghaction-chocolatey@v3
uses: crazy-max/ghaction-chocolatey@v4
with:
args: -h

Expand All @@ -74,7 +74,7 @@ jobs:
choco install glpk

- name: Download package
uses: actions/download-artifact@v7
uses: actions/download-artifact@v8
with:
name: Packages
path: dist
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
python-version: 3.12

- name: Download package
uses: actions/download-artifact@v7
uses: actions/download-artifact@v8
with:
name: Packages
path: dist
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ benchmark/scripts/leftovers/
# direnv
.envrc
AGENTS.md
coverage.xml
22 changes: 1 addition & 21 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,27 +110,6 @@ When modifying the codebase, maintain consistency with these patterns and ensure
* Always create a feature branch for new features or bug fixes.
* Use the github cli (gh) to interact with the Github repository.

### GitHub Claude Code Integration

This repository includes Claude Code GitHub Actions for automated assistance:

1. **Automated PR Reviews** (`claude-code-review.yml`):
- Automatically reviews PRs only when first created (opened)
- Subsequent reviews require manual `@claude` mention
- Focuses on Python best practices, xarray patterns, and optimization correctness
- Can run tests and linting as part of the review
- **Skip initial review by**: Adding `[skip-review]` or `[WIP]` to PR title, or using draft PRs

2. **Manual Claude Assistance** (`claude.yml`):
- Trigger by mentioning `@claude` in any:
- Issue comments
- Pull request comments
- Pull request reviews
- New issue body or title
- Claude can help with bug fixes, feature implementation, code explanations, etc.

**Note**: Both workflows require the `ANTHROPIC_API_KEY` secret to be configured in the repository settings.


## Development Guidelines

Expand All @@ -140,3 +119,4 @@ This repository includes Claude Code GitHub Actions for automated assistance:
4. Use type hints and mypy for type checking.
5. Always write tests into the `test` directory, following the naming convention `test_*.py`.
6. Always write temporary and non git-tracked code in the `dev-scripts` directory.
7. In test scripts use linopy assertions from the testing.py module where useful (assert_linequal, assert_varequal, etc.)
3 changes: 2 additions & 1 deletion doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ Creating a model
model.Model.add_constraints
model.Model.add_objective
model.Model.add_piecewise_constraints
model.Model.add_disjunctive_piecewise_constraints
piecewise.piecewise
piecewise.breakpoints
piecewise.segments
model.Model.linexpr
model.Model.remove_constraints

Expand Down
1 change: 1 addition & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ This package is published under MIT license.
creating-variables
creating-expressions
creating-constraints
coordinate-alignment
sos-constraints
piecewise-linear-constraints
piecewise-linear-constraints-tutorial
Expand Down
Loading
Loading