From 0044b867400b50948f29db3806fc3245f4ec4c84 Mon Sep 17 00:00:00 2001 From: Antoni Marroig Campomar Date: Mon, 30 Sep 2024 08:25:46 +0200 Subject: [PATCH] [IMP] base_geoengine_demo: pre-commit auto fixes --- base_geoengine_demo/README.rst | 38 +++++++++---------- base_geoengine_demo/models/geo_npa.py | 2 +- base_geoengine_demo/pyproject.toml | 3 ++ base_geoengine_demo/readme/CONTRIBUTORS.md | 7 ++++ base_geoengine_demo/readme/CONTRIBUTORS.rst | 7 ---- base_geoengine_demo/readme/DESCRIPTION.md | 2 + base_geoengine_demo/readme/DESCRIPTION.rst | 2 - base_geoengine_demo/readme/INSTALL.md | 2 + base_geoengine_demo/readme/INSTALL.rst | 2 - base_geoengine_demo/readme/USAGE.md | 1 + base_geoengine_demo/readme/USAGE.rst | 1 - .../static/description/index.html | 26 +++++++------ 12 files changed, 49 insertions(+), 44 deletions(-) create mode 100644 base_geoengine_demo/pyproject.toml create mode 100644 base_geoengine_demo/readme/CONTRIBUTORS.md delete mode 100644 base_geoengine_demo/readme/CONTRIBUTORS.rst create mode 100644 base_geoengine_demo/readme/DESCRIPTION.md delete mode 100644 base_geoengine_demo/readme/DESCRIPTION.rst create mode 100644 base_geoengine_demo/readme/INSTALL.md delete mode 100644 base_geoengine_demo/readme/INSTALL.rst create mode 100644 base_geoengine_demo/readme/USAGE.md delete mode 100644 base_geoengine_demo/readme/USAGE.rst diff --git a/base_geoengine_demo/README.rst b/base_geoengine_demo/README.rst index 5e72d3ac3d..6071973bd2 100644 --- a/base_geoengine_demo/README.rst +++ b/base_geoengine_demo/README.rst @@ -17,19 +17,19 @@ Geo spatial support Demo :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fgeospatial-lightgray.png?logo=github - :target: https://github.com/OCA/geospatial/tree/16.0/base_geoengine_demo + :target: https://github.com/OCA/geospatial/tree/17.0/base_geoengine_demo :alt: OCA/geospatial .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/geospatial-16-0/geospatial-16-0-base_geoengine_demo + :target: https://translation.odoo-community.org/projects/geospatial-17-0/geospatial-17-0-base_geoengine_demo :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/geospatial&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/geospatial&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -Demonstration for the Geospatial support based on PostGIS. -Read the ``base_geoengine`` description for more details. +Demonstration for the Geospatial support based on PostGIS. Read the +``base_geoengine`` description for more details. **Table of contents** @@ -39,8 +39,8 @@ Read the ``base_geoengine`` description for more details. Installation ============ -Please refer to the ``base_geoengine`` installation instructions -to learn how to properly install this demonstration module. +Please refer to the ``base_geoengine`` installation instructions to +learn how to properly install this demonstration module. Usage ===== @@ -53,7 +53,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -61,23 +61,23 @@ Credits ======= Authors -~~~~~~~ +------- * Camptocamp Contributors -~~~~~~~~~~~~ +------------ -* Nicolas Bessi -* Yannick Vaucher -* Laurent Mignon -* Sandy Carter -* Daniel Reis -* Alexandre Saunier -* Samuel Kouff +- Nicolas Bessi +- Yannick Vaucher +- Laurent Mignon +- Sandy Carter +- Daniel Reis +- Alexandre Saunier +- Samuel Kouff Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -89,6 +89,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/geospatial `_ project on GitHub. +This module is part of the `OCA/geospatial `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_geoengine_demo/models/geo_npa.py b/base_geoengine_demo/models/geo_npa.py index 7f3d045e8a..ea2afd2fd2 100644 --- a/base_geoengine_demo/models/geo_npa.py +++ b/base_geoengine_demo/models/geo_npa.py @@ -60,5 +60,5 @@ def _compute_ZIP_total_sales(self): def name_get(self): res = [] for rec in self: - res.append((rec.id, "%s %s" % (rec.name, rec.city))) + res.append((rec.id, f"{rec.name} {rec.city}")) return res diff --git a/base_geoengine_demo/pyproject.toml b/base_geoengine_demo/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/base_geoengine_demo/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/base_geoengine_demo/readme/CONTRIBUTORS.md b/base_geoengine_demo/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..62828938aa --- /dev/null +++ b/base_geoengine_demo/readme/CONTRIBUTORS.md @@ -0,0 +1,7 @@ +- Nicolas Bessi \<\> +- Yannick Vaucher \<\> +- Laurent Mignon \<\> +- Sandy Carter \<\> +- Daniel Reis \<\> +- Alexandre Saunier \<\> +- Samuel Kouff \<\> diff --git a/base_geoengine_demo/readme/CONTRIBUTORS.rst b/base_geoengine_demo/readme/CONTRIBUTORS.rst deleted file mode 100644 index 1ff78b9948..0000000000 --- a/base_geoengine_demo/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,7 +0,0 @@ -* Nicolas Bessi -* Yannick Vaucher -* Laurent Mignon -* Sandy Carter -* Daniel Reis -* Alexandre Saunier -* Samuel Kouff diff --git a/base_geoengine_demo/readme/DESCRIPTION.md b/base_geoengine_demo/readme/DESCRIPTION.md new file mode 100644 index 0000000000..a0542157c5 --- /dev/null +++ b/base_geoengine_demo/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +Demonstration for the Geospatial support based on PostGIS. Read the +`base_geoengine` description for more details. diff --git a/base_geoengine_demo/readme/DESCRIPTION.rst b/base_geoengine_demo/readme/DESCRIPTION.rst deleted file mode 100644 index 812e40e6eb..0000000000 --- a/base_geoengine_demo/readme/DESCRIPTION.rst +++ /dev/null @@ -1,2 +0,0 @@ -Demonstration for the Geospatial support based on PostGIS. -Read the ``base_geoengine`` description for more details. diff --git a/base_geoengine_demo/readme/INSTALL.md b/base_geoengine_demo/readme/INSTALL.md new file mode 100644 index 0000000000..80e5ffcdb9 --- /dev/null +++ b/base_geoengine_demo/readme/INSTALL.md @@ -0,0 +1,2 @@ +Please refer to the `base_geoengine` installation instructions to learn +how to properly install this demonstration module. diff --git a/base_geoengine_demo/readme/INSTALL.rst b/base_geoengine_demo/readme/INSTALL.rst deleted file mode 100644 index 05fa3c93df..0000000000 --- a/base_geoengine_demo/readme/INSTALL.rst +++ /dev/null @@ -1,2 +0,0 @@ -Please refer to the ``base_geoengine`` installation instructions -to learn how to properly install this demonstration module. diff --git a/base_geoengine_demo/readme/USAGE.md b/base_geoengine_demo/readme/USAGE.md new file mode 100644 index 0000000000..6465148ece --- /dev/null +++ b/base_geoengine_demo/readme/USAGE.md @@ -0,0 +1 @@ +Please refer the `base_geoengine` for usage instructions. diff --git a/base_geoengine_demo/readme/USAGE.rst b/base_geoengine_demo/readme/USAGE.rst deleted file mode 100644 index 4563b36e23..0000000000 --- a/base_geoengine_demo/readme/USAGE.rst +++ /dev/null @@ -1 +0,0 @@ -Please refer the ``base_geoengine`` for usage instructions. diff --git a/base_geoengine_demo/static/description/index.html b/base_geoengine_demo/static/description/index.html index cb167e13d4..d8654e4c1d 100644 --- a/base_geoengine_demo/static/description/index.html +++ b/base_geoengine_demo/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,9 +369,9 @@

Geo spatial support Demo

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:0099ac44e57708ef210a49333280cfa57681acbf161289269a096c2516362fb6 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/geospatial Translate me on Weblate Try me on Runboat

-

Demonstration for the Geospatial support based on PostGIS. -Read the base_geoengine description for more details.

+

Beta License: AGPL-3 OCA/geospatial Translate me on Weblate Try me on Runboat

+

Demonstration for the Geospatial support based on PostGIS. Read the +base_geoengine description for more details.

Table of contents

    @@ -388,8 +388,8 @@

    Geo spatial support Demo

Installation

-

Please refer to the base_geoengine installation instructions -to learn how to properly install this demonstration module.

+

Please refer to the base_geoengine installation instructions to +learn how to properly install this demonstration module.

Usage

@@ -400,7 +400,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -426,11 +426,13 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/geospatial project on GitHub.

+

This module is part of the OCA/geospatial project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.