Skip to content

Commit

Permalink
Add precommit fix (#1153)
Browse files Browse the repository at this point in the history
* add precommit fix

* Add release_note

* Temporary disable of docformatter
  • Loading branch information
davide-f authored Oct 28, 2024
1 parent 5c8df3f commit faaa0b6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- cron: "0 5 * * TUE"

env:
CACHE_NUMBER: 2 # Change this value to manually reset the environment cache
CACHE_NUMBER: 1 # Change this value to manually reset the environment cache

jobs:
build:
Expand Down
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ repos:
types_or: [python, rst, markdown]
files: ^(scripts|doc)/

# Make docstrings PEP 257 compliant
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"]
# # Make docstrings PEP 257 compliant
# - repo: https://github.com/PyCQA/docformatter
# rev: v1.7.5
# hooks:
# - id: docformatter
# args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"]
# entry: docformatter
# language: python
# types: [python]

- repo: https://github.com/keewis/blackdoc
rev: v0.3.9
Expand Down
2 changes: 2 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ E.g. if a new rule becomes available describe how to use it `make test` and in o

* Enable configfile specification for mock_snakemake `PR #1135 <https://github.com/pypsa-meets-earth/pypsa-earth/pull/1135>`_

* Fix pre-commit docformatter python issue. `PR #1153 <https://github.com/pypsa-meets-earth/pypsa-earth/pull/1153>`__

PyPSA-Earth 0.4.1
=================

Expand Down

0 comments on commit faaa0b6

Please sign in to comment.