diff --git a/.flake8 b/.flake8
new file mode 100644
index 00000000..c981be61
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,7 @@
+[flake8]
+extend-exclude = docs
+max-line-length = 88
+extend-ignore = E203, F841
+count = true
+statistics = true
+show-source = true
diff --git a/.isort.cfg b/.isort.cfg
new file mode 100644
index 00000000..cc5b9a8a
--- /dev/null
+++ b/.isort.cfg
@@ -0,0 +1,4 @@
+[settings]
+profile = black
+multi_line_output = 3
+lines_between_types = 1
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 00000000..cc65366d
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,24 @@
+repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.3.0
+ hooks:
+ - id: check-yaml
+ - id: end-of-file-fixer
+ - id: trailing-whitespace
+- repo: https://github.com/psf/black
+ rev: 22.8.0
+ hooks:
+ - id: black
+- repo: https://github.com/pycqa/isort
+ rev: 5.10.1
+ hooks:
+ - id: isort
+ name: isort (python)
+- repo: https://github.com/asottile/pyupgrade
+ rev: v2.38.0
+ hooks:
+ - id: pyupgrade
+- repo: https://github.com/pycqa/flake8
+ rev: 5.0.4
+ hooks:
+ - id: flake8
diff --git a/README.rst b/README.rst
index 3aa23ff0..5931403a 100644
--- a/README.rst
+++ b/README.rst
@@ -4,7 +4,7 @@
.. image:: https://openegoproject.files.wordpress.com/2017/02/open_ego_logo_breit.png?w=400
-
+
*A cross-grid-level electricity grid and storage optimization tool*
| `openegoproject.wordpress.com `_
@@ -16,8 +16,8 @@ eGo
Integrated optimization of flexibility options and grid extension measures
for power grids based on `eTraGo `_ and
-`eDisGo `_. The Documentation of the eGo tool
-can be found on
+`eDisGo `_. The Documentation of the eGo tool
+can be found on
`openego.readthedocs.io `_ .
.. contents::
@@ -35,7 +35,7 @@ In case of installation errors of pypsa-fork use:
.. code-block::
- $ pip3 install -e git+https://github.com/openego/PyPSA@master#egg=0.11.0fork
+ $ pip3 install -e git+https://github.com/openego/PyPSA@master#egg=0.11.0fork
----------------------------
@@ -46,10 +46,12 @@ Create a virtualenvironment and activate it:
.. code-block::
- $ virtualenv venv --clear -p python3.5
+ $ virtualenv venv --clear -p python3.8
$ source venv/bin/activate
- $ cd venv
- $ pip3 install -e git+https://github.com/openego/eGo@dev#egg=eGo --process-dependency-links
+ $ cd path/to/eGo
+ $ python -m pip install -e .[full]
+ $ pre-commit install # install pre-commit hooks
+
-------
License
@@ -84,6 +86,6 @@ this program. If not, see https://www.gnu.org/licenses/.
.. |readthedocs| image:: https://readthedocs.org/projects/openego/badge/?version=master
:target: http://openego.readthedocs.io/en/latest/?badge=master
:alt: Documentation Status
-
+
.. |zenodo| image:: https://zenodo.org/badge/87306120.svg
:target: https://zenodo.org/badge/latestdoi/87306120
diff --git a/doc/_static/ego_example_iplot_map.html b/doc/_static/ego_example_iplot_map.html
index 16f51970..34c5d0ab 100644
--- a/doc/_static/ego_example_iplot_map.html
+++ b/doc/_static/ego_example_iplot_map.html
@@ -1,5 +1,5 @@
-
+
@@ -14,7 +14,7 @@
-
+
-
+
-
-
+
+
@@ -92,7 +92,7 @@
-
+
.maplegend .legend-title {
text-align: left;
@@ -221,8 +221,8 @@
-
-
+
+
-
-
+
+
-
+

-
+
-