Skip to content

Commit 2c176ef

Browse files
victoralmaucarlos-lopez-tecnativa
authored andcommitted
[IMP] github_connector_odoo: pre-commit auto fixes
1 parent 9f9ec88 commit 2c176ef

File tree

13 files changed

+117
-115
lines changed

13 files changed

+117
-115
lines changed

github_connector_odoo/README.rst

Lines changed: 61 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,26 @@ Github Connector - Odoo
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Finterface--github-lightgray.png?logo=github
20-
:target: https://github.com/OCA/interface-github/tree/16.0/github_connector_odoo
20+
:target: https://github.com/OCA/interface-github/tree/17.0/github_connector_odoo
2121
:alt: OCA/interface-github
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/interface-github-16-0/interface-github-16-0-github_connector_odoo
23+
:target: https://translation.odoo-community.org/projects/interface-github-17-0/interface-github-17-0-github_connector_odoo
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/interface-github&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/interface-github&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
This module was written to extend the functionality of 'Github Connector'
32-
Module if your repositories contain Odoo Modules.
31+
This module was written to extend the functionality of 'Github
32+
Connector' Module if your repositories contain Odoo Modules.
3333

34-
It extends 'Analysis' features to parse code files (readme / manifest files)
35-
and add new models and menus.
34+
It extends 'Analysis' features to parse code files (readme / manifest
35+
files) and add new models and menus.
3636

37-
.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/menu.png
37+
|image|
38+
39+
.. |image| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/menu.png
3840

3941
**Table of contents**
4042

@@ -44,134 +46,138 @@ and add new models and menus.
4446
Configuration
4547
=============
4648

47-
* Once installed, go to your organization, and set extra settings:
49+
- Once installed, go to your organization, and set extra settings:
4850

4951
1. The name of your organization in the author keys of the manifest odoo
5052
modules (in the **Default Author Text** field)
51-
2. The URL of the file that contains IDs of your repositories for the runbot
53+
2. The URL of the file that contains IDs of your repositories for the
54+
runbot
55+
56+
|image|
5257

53-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector_odoo/static/description/github_organization_form.png
58+
If you had analyzed previously your repositories with the 'github
59+
Connector' module, you should launch again the Analysis Process for all
60+
your Repository Branches.
5461

55-
If you had analyzed previously your repositories with the
56-
'github Connector' module, you should launch again the Analysis Process
57-
for all your Repository Branches.
62+
.. |image| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/github_organization_form.png
5863

5964
Usage
6065
=====
6166

6267
**Odoo Modules**
6368

64-
.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_module_kanban.png
69+
|image|
6570

6671
In each module, you can see the description of the module, the authors,
6772
the available series, and the list of the modules that depend on the
6873
current module.
6974

70-
.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_module_form.png
71-
72-
75+
|image1|
7376

7477
**Odoo Authors**
7578

76-
.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_author.png
79+
|image2|
7780

7881
This list is based on the 'author' key of the manifest file.
7982

80-
81-
8283
**Odoo License**
8384

8485
This list is based on the 'license' key of the manifest file.
8586

86-
.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_license.png
87-
88-
87+
|image3|
8988

9089
**Odoo Bin Libs**
9190

9291
This list is based on the 'external_dependencies' / 'bin' key of the
9392
manifest file.
9493

95-
.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_bin_libs.png
96-
97-
94+
|image4|
9895

9996
**Odoo Python Libs**
10097

10198
This list is based on the 'external_dependencies' / 'python' key of the
10299
manifest file.
103100

104-
.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_python_libs.png
105-
106-
101+
|image5|
107102

108103
**Analysis source code**
109104

110-
Implements Analysis source code in odoo module versions, now add new field called "has_odoo_addons" (boolean) in Analysis rule that allow (if defined) analyze odoo_module_versions and save info about it
111-
112-
105+
Implements Analysis source code in odoo module versions, now add new
106+
field called "has_odoo_addons" (boolean) in Analysis rule that allow (if
107+
defined) analyze odoo_module_versions and save info about it
113108

114109
**Soource code analysis**
115110

116-
Implements Source code analysis odoo module versions, now addiing new field called "has_odoo_addons" (boolean) in Analysis rule that (if defined) allows to analyze odoo_module_versions and save info about it
117-
118-
In 'Repository Branch' / 'Code Analysis', shows the info related to odoo_module_versions rules analysis too.
119-
111+
Implements Source code analysis odoo module versions, now addiing new
112+
field called "has_odoo_addons" (boolean) in Analysis rule that (if
113+
defined) allows to analyze odoo_module_versions and save info about it
120114

115+
In 'Repository Branch' / 'Code Analysis', shows the info related to
116+
odoo_module_versions rules analysis too.
121117

122118
**Reporting**
123119

124120
This module provide a new reporting.
125121

126122
**Modules by Serie (and Licenses)**
127123

128-
.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/reporting_module_by_serie.png
124+
|image6|
125+
126+
.. |image| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_module_kanban.png
127+
.. |image1| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_module_form.png
128+
.. |image2| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_author.png
129+
.. |image3| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_license.png
130+
.. |image4| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_bin_libs.png
131+
.. |image5| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_python_libs.png
132+
.. |image6| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/reporting_module_by_serie.png
129133

130134
Known issues / Roadmap
131135
======================
132136

133137
Possible improvements :
134138

135-
* Implement deep code source analysis, like the website http://odoo-code-search.com/
136-
and specially:
139+
- Implement deep code source analysis, like the website
140+
http://odoo-code-search.com/ and specially:
137141

138-
1. Possibility to search by field or by model name. (Ex: field:invoice_id)
139-
2. Possibility to display the number of XML, Python, Yaml, HTML, CSS lines
142+
1. Possibility to search by field or by model name. (Ex:
143+
field:invoice_id)
144+
2. Possibility to display the number of XML, Python, Yaml, HTML, CSS
145+
lines
140146

141147
Bug Tracker
142148
===========
143149

144150
Bugs are tracked on `GitHub Issues <https://github.com/OCA/interface-github/issues>`_.
145151
In case of trouble, please check there if your issue has already been reported.
146152
If you spotted it first, help us to smash it by providing a detailed and welcomed
147-
`feedback <https://github.com/OCA/interface-github/issues/new?body=module:%20github_connector_odoo%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
153+
`feedback <https://github.com/OCA/interface-github/issues/new?body=module:%20github_connector_odoo%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
148154

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

151157
Credits
152158
=======
153159

154160
Authors
155-
~~~~~~~
161+
-------
156162

157163
* Sylvain LE GAL
158164
* GRAP
159165

160166
Contributors
161-
~~~~~~~~~~~~
167+
------------
162168

163-
* Sylvain LE GAL (https://twitter.com/legalsylvain)
164-
* `Tecnativa <https://www.tecnativa.com>`_:
169+
- Sylvain LE GAL (https://twitter.com/legalsylvain)
170+
- `Tecnativa <https://www.tecnativa.com>`__:
165171

166-
* Vicent Cubells
167-
* Alexandre Díaz
168-
* Pedro M. Baeza
169-
* Ernesto Tejeda
170-
* Víctor Martínez
171-
* Carolina Fernandez
172+
- Vicent Cubells
173+
- Alexandre Díaz
174+
- Pedro M. Baeza
175+
- Ernesto Tejeda
176+
- Víctor Martínez
177+
- Carolina Fernandez
172178

173179
Maintainers
174-
~~~~~~~~~~~
180+
-----------
175181

176182
This module is maintained by the OCA.
177183

@@ -183,6 +189,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
183189
mission is to support the collaborative development of Odoo features and
184190
promote its widespread use.
185191

186-
This module is part of the `OCA/interface-github <https://github.com/OCA/interface-github/tree/16.0/github_connector_odoo>`_ project on GitHub.
192+
This module is part of the `OCA/interface-github <https://github.com/OCA/interface-github/tree/17.0/github_connector_odoo>`_ project on GitHub.
187193

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

github_connector_odoo/models/github_analysis_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _get_matches(self, path):
2121
spec = self._set_spec(["*"])
2222
file_paths = []
2323
for path_item in spec.match_tree(path):
24-
file_paths.append("{}/{}".format(path, path_item))
24+
file_paths.append(f"{path}/{path_item}")
2525
spec = self._set_spec(self.paths.splitlines())
2626
return spec.match_files(file_paths)
2727
return super()._get_matches(path)

github_connector_odoo/models/github_repository_branch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def _operation_analysis_rule_by_module_version(
221221
key_paths = module_info[manifest_key_find.name]
222222
path_items = []
223223
for key_path in key_paths:
224-
path_items.append("{}/{}".format(full_path, key_path))
224+
path_items.append(f"{full_path}/{key_path}")
225225
matchs += spec.match_files(path_items)
226226
else:
227227
matchs = rule._get_matches(full_path)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- Once installed, go to your organization, and set extra settings:
2+
3+
1. The name of your organization in the author keys of the manifest
4+
odoo modules (in the **Default Author Text** field)
5+
2. The URL of the file that contains IDs of your repositories for the
6+
runbot
7+
8+
![image](./static/description/github_organization_form.png)
9+
10+
If you had analyzed previously your repositories with the 'github
11+
Connector' module, you should launch again the Analysis Process for all
12+
your Repository Branches.

github_connector_odoo/readme/CONFIGURE.rst

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- Sylvain LE GAL (<https://twitter.com/legalsylvain>)
2+
- [Tecnativa](https://www.tecnativa.com):
3+
- Vicent Cubells
4+
- Alexandre Díaz
5+
- Pedro M. Baeza
6+
- Ernesto Tejeda
7+
- Víctor Martínez
8+
- Carolina Fernandez

github_connector_odoo/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This module was written to extend the functionality of 'Github
2+
Connector' Module if your repositories contain Odoo Modules.
3+
4+
It extends 'Analysis' features to parse code files (readme / manifest
5+
files) and add new models and menus.
6+
7+
![image](/github_connector_odoo/static/description/menu.png)

github_connector_odoo/readme/DESCRIPTION.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)