Skip to Content

Contributors

17.0 branches

Hi everyone,

The 17.0 branches are being created in all OCA repos as I'm writing this.

There are few news and improvements compared to previous branches, mainly in the pre-commit configuration:

  • It uses ruff and ruff-format instead of flake8, autoflakes, isort, pyupgrade and black. This will improve the performance of pre-commit runs. Note that if some PSC want to be stricter by enabling additional ruff rules [1], it is possible by re-running "copier update --trust" and answering the corresponding question.
  • The readme fragments are converted to markdown. This makes it easier for non-technical contributors, and is also more robust (wrt subtitles formats, for instance). This is already reflected in the OCA module template [2]
  • pre-commit creates a pyproject.toml file at the root of each addon, in place of setup.py in the separate setup/ directory. This is more intuitive (each addon is a little python project) and standards based. It is also more robust as some recent version of setuptools break our setup.py (and Odoo's) editable mode in some circumstances.
  • pre-commit generates README.rst and index.hml. This is for easier review of the module descriptions in runboat.
The migration issues had been created last week. Don't forget to announce yourself when you start migrating a module.

In case of problem, let us know of any problem by creating an issue in the repo template project [3]

Best regards,

[1] https://docs.astral.sh/ruff/rules/

--
Stéphane Bidoul
http://acsone.eu/


by Stéphane Bidoul - 04:18 - 12 Nov 2023

Follow-Ups

  • Re: 17.0 branches
    Thanks a lot Stéphane for all these evolutions.

    Some of them have a really good impact on the environment, double thanks for that.

    David BEAL
    Consultant ERP Odoo


    Le lun. 13 nov. 2023 à 15:52, Juan José Scarafía <notifications@odoo-community.org> a écrit :
    Great, thanks!

    Ing. Juan José Scarafía

    (+54 9 341) 3 278039

    twitter: @jjscarafia

    github: @jjscarafia



    El dom, 12 nov 2023 a la(s) 13:25, Stéphane Bidoul (notifications@odoo-community.org) escribió:
    Hi everyone,

    The 17.0 branches are being created in all OCA repos as I'm writing this.

    There are few news and improvements compared to previous branches, mainly in the pre-commit configuration:

    • It uses ruff and ruff-format instead of flake8, autoflakes, isort, pyupgrade and black. This will improve the performance of pre-commit runs. Note that if some PSC want to be stricter by enabling additional ruff rules [1], it is possible by re-running "copier update --trust" and answering the corresponding question.
    • The readme fragments are converted to markdown. This makes it easier for non-technical contributors, and is also more robust (wrt subtitles formats, for instance). This is already reflected in the OCA module template [2]
    • pre-commit creates a pyproject.toml file at the root of each addon, in place of setup.py in the separate setup/ directory. This is more intuitive (each addon is a little python project) and standards based. It is also more robust as some recent version of setuptools break our setup.py (and Odoo's) editable mode in some circumstances.
    • pre-commit generates README.rst and index.hml. This is for easier review of the module descriptions in runboat.
    The migration issues had been created last week. Don't forget to announce yourself when you start migrating a module.

    In case of problem, let us know of any problem by creating an issue in the repo template project [3]

    Best regards,

    [1] https://docs.astral.sh/ruff/rules/

    --
    Stéphane Bidoul
    http://acsone.eu/

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by David BEAL - 07:25 - 13 Nov 2023
  • Re: 17.0 branches
    Great, thanks!

    Ing. Juan José Scarafía

    (+54 9 341) 3 278039

    twitter: @jjscarafia

    github: @jjscarafia



    El dom, 12 nov 2023 a la(s) 13:25, Stéphane Bidoul (notifications@odoo-community.org) escribió:
    Hi everyone,

    The 17.0 branches are being created in all OCA repos as I'm writing this.

    There are few news and improvements compared to previous branches, mainly in the pre-commit configuration:

    • It uses ruff and ruff-format instead of flake8, autoflakes, isort, pyupgrade and black. This will improve the performance of pre-commit runs. Note that if some PSC want to be stricter by enabling additional ruff rules [1], it is possible by re-running "copier update --trust" and answering the corresponding question.
    • The readme fragments are converted to markdown. This makes it easier for non-technical contributors, and is also more robust (wrt subtitles formats, for instance). This is already reflected in the OCA module template [2]
    • pre-commit creates a pyproject.toml file at the root of each addon, in place of setup.py in the separate setup/ directory. This is more intuitive (each addon is a little python project) and standards based. It is also more robust as some recent version of setuptools break our setup.py (and Odoo's) editable mode in some circumstances.
    • pre-commit generates README.rst and index.hml. This is for easier review of the module descriptions in runboat.
    The migration issues had been created last week. Don't forget to announce yourself when you start migrating a module.

    In case of problem, let us know of any problem by creating an issue in the repo template project [3]

    Best regards,

    [1] https://docs.astral.sh/ruff/rules/

    --
    Stéphane Bidoul
    http://acsone.eu/

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Juan José Scarafía - 03:51 - 13 Nov 2023
  • Re: 17.0 branches
    It can be decided per branch answering the copier question.

    Regards.

    by Pedro M. Baeza - 03:36 - 13 Nov 2023
  • Re: 17.0 branches
    Will Ruff also be used on earlier branches or will it only be used for 17.0+?

    Il giorno dom 12 nov 2023 alle ore 17:25 Stéphane Bidoul <notifications@odoo-community.org> ha scritto:
    Hi everyone,

    The 17.0 branches are being created in all OCA repos as I'm writing this.

    There are few news and improvements compared to previous branches, mainly in the pre-commit configuration:

    • It uses ruff and ruff-format instead of flake8, autoflakes, isort, pyupgrade and black. This will improve the performance of pre-commit runs. Note that if some PSC want to be stricter by enabling additional ruff rules [1], it is possible by re-running "copier update --trust" and answering the corresponding question.
    • The readme fragments are converted to markdown. This makes it easier for non-technical contributors, and is also more robust (wrt subtitles formats, for instance). This is already reflected in the OCA module template [2]
    • pre-commit creates a pyproject.toml file at the root of each addon, in place of setup.py in the separate setup/ directory. This is more intuitive (each addon is a little python project) and standards based. It is also more robust as some recent version of setuptools break our setup.py (and Odoo's) editable mode in some circumstances.
    • pre-commit generates README.rst and index.hml. This is for easier review of the module descriptions in runboat.
    The migration issues had been created last week. Don't forget to announce yourself when you start migrating a module.

    In case of problem, let us know of any problem by creating an issue in the repo template project [3]

    Best regards,

    [1] https://docs.astral.sh/ruff/rules/

    --
    Stéphane Bidoul
    http://acsone.eu/

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    --

    Francesco Apruzzese

    Profilo professionale: http://it.linkedin.com/in/francescoapruzzese

    Il contenuto di questo messaggio elettronico è riservato e tutelato dal segreto professionale ed è rivolto esclusivamente al/ai destinatario/i identificato/i. Pertanto è proibito leggerlo, copiarlo, divulgarlo o utilizzarlo da parte di chiunque salvo il/i destinatario/i. Se non siete il destinatario, vi invitiamo a cancellare il messaggio ed eventuali allegati dandocene immediatamente comunicazione scritta a mezzo posta elettronica.
    This e-mail and any attachments are confidential and may contain information intended for the addressee(s) only. Reading, copying, disclosure or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail.

    Non stampare questa email se non strettamente necessario. Aiuta te ed aiuta l'ambiente.


    by Francesco Apruzzese - 03:31 - 13 Nov 2023
  • Re: 17.0 branches
    Thanks Stéphane

    On Sun, Nov 12, 2023 at 7:55 PM Stéphane Bidoul <notifications@odoo-community.org> wrote:
    Hi everyone,

    The 17.0 branches are being created in all OCA repos as I'm writing this.

    There are few news and improvements compared to previous branches, mainly in the pre-commit configuration:

    • It uses ruff and ruff-format instead of flake8, autoflakes, isort, pyupgrade and black. This will improve the performance of pre-commit runs. Note that if some PSC want to be stricter by enabling additional ruff rules [1], it is possible by re-running "copier update --trust" and answering the corresponding question.
    • The readme fragments are converted to markdown. This makes it easier for non-technical contributors, and is also more robust (wrt subtitles formats, for instance). This is already reflected in the OCA module template [2]
    • pre-commit creates a pyproject.toml file at the root of each addon, in place of setup.py in the separate setup/ directory. This is more intuitive (each addon is a little python project) and standards based. It is also more robust as some recent version of setuptools break our setup.py (and Odoo's) editable mode in some circumstances.
    • pre-commit generates README.rst and index.hml. This is for easier review of the module descriptions in runboat.
    The migration issues had been created last week. Don't forget to announce yourself when you start migrating a module.

    In case of problem, let us know of any problem by creating an issue in the repo template project [3]

    Best regards,

    [1] https://docs.astral.sh/ruff/rules/

    --
    Stéphane Bidoul
    http://acsone.eu/

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Mostafa Barmshory - 03:28 - 13 Nov 2023