Skip to content

Commit cd55e1a

Browse files
[pre-commit.ci] pre-commit autoupdate (#472)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.8 → v0.12.2](astral-sh/ruff-pre-commit@v0.11.8...v0.12.2) - [github.com/keewis/blackdoc: v0.3.9 → v0.4.1](keewis/blackdoc@v0.3.9...v0.4.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent dafbf5f commit cd55e1a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: trailing-whitespace
1010
- id: check-merge-conflict
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.11.8
12+
rev: v0.12.2
1313
hooks:
1414
- id: ruff
1515
args: [--fix]
@@ -21,7 +21,7 @@ repos:
2121
# - id: docformatter
2222
# args: [--in-place, --make-summary-multi-line, --pre-summary-newline]
2323
- repo: https://github.com/keewis/blackdoc
24-
rev: v0.3.9
24+
rev: v0.4.1
2525
hooks:
2626
- id: blackdoc
2727
- repo: https://github.com/codespell-project/codespell

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ Linopy aims to make optimization programs transparent and flexible. To illustrat
6565

6666
>>> m = linopy.Model()
6767

68-
>>> days = pd.Index(['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], name='day')
69-
>>> apples = m.add_variables(lower=0, name='apples', coords=[days])
70-
>>> bananas = m.add_variables(lower=0, name='bananas', coords=[days])
68+
>>> days = pd.Index(["Mon", "Tue", "Wed", "Thu", "Fri"], name="day")
69+
>>> apples = m.add_variables(lower=0, name="apples", coords=[days])
70+
>>> bananas = m.add_variables(lower=0, name="bananas", coords=[days])
7171
>>> apples
7272
```
7373
```
@@ -83,7 +83,7 @@ Variable (day: 5)
8383
Add daily vitamin constraints
8484

8585
```python
86-
>>> m.add_constraints(3 * apples + 2 * bananas >= 8, name='daily_vitamins')
86+
>>> m.add_constraints(3 * apples + 2 * bananas >= 8, name="daily_vitamins")
8787
```
8888
```
8989
Constraint `daily_vitamins` (day: 5):
@@ -98,7 +98,7 @@ Constraint `daily_vitamins` (day: 5):
9898
Add weekly vitamin constraint
9999

100100
```python
101-
>>> m.add_constraints((3 * apples + 2 * bananas).sum() >= 50, name='weekly_vitamins')
101+
>>> m.add_constraints((3 * apples + 2 * bananas).sum() >= 50, name="weekly_vitamins")
102102
```
103103
```
104104
Constraint `weekly_vitamins`

0 commit comments

Comments
 (0)