Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Dec 20, 2022
Merged
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.0
rev: v1.5.1
hooks:
- id: docformatter
args: [--in-place, --make-summary-multi-line, --pre-summary-newline]
Expand All @@ -23,7 +23,7 @@ repos:
hooks:
- id: absolufy-imports
- repo: https://github.com/PyCQA/isort
rev: 5.11.0
rev: v5.11.3
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
Expand Down
1 change: 0 additions & 1 deletion linopy/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ def __repr__(self) -> str:
)

def info(self) -> str:

status = self.status

if status.is_ok:
Expand Down
3 changes: 2 additions & 1 deletion linopy/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ def _ipython_key_completions_(self):
"""
Provide method for the key-autocompletions in IPython.

See http://ipython.readthedocs.io/en/stable/config/integrating.html#tab-completion
See
http://ipython.readthedocs.io/en/stable/config/integrating.html#tab-completion
For the details.
"""
return list(self)
Expand Down
2 changes: 0 additions & 2 deletions linopy/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ def run_cbc(
status.legacy_status = data

def get_solver_solution():

objective = float(data[len("Optimal - objective value ") :])

with open(solution_fn, "rb") as f:
Expand Down Expand Up @@ -642,7 +641,6 @@ def run_xpress(
status.legacy_status = condition

def get_solver_solution() -> Solution:

objective = m.getObjVal()

var = [str(v) for v in m.getVariable()]
Expand Down
3 changes: 2 additions & 1 deletion linopy/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ def _ipython_key_completions_(self):
"""
Provide method for the key-autocompletions in IPython.

See http://ipython.readthedocs.io/en/stable/config/integrating.html#tab-completion
See
http://ipython.readthedocs.io/en/stable/config/integrating.html#tab-completion
For the details.
"""
return list(self)
Expand Down