Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] When migrating code, automatically apply PEP 3135 #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anothingguy
Copy link

automatically apply PEP 3135

Example:
super(TestHrEmployee, self).setUp() -> super().setUp()

Copy link
Collaborator

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !

Could you add tests ?

@anothingguy
Copy link
Author

Thanks !

Could you add tests ?

yes, sure

@sbidoul
Copy link
Member

sbidoul commented Oct 28, 2023

I would suggest to delegate this kind of standard python stuff to common python tools such as pyupgrade or ruff (rule UP008).

@trisdoan
Copy link

trisdoan commented Dec 5, 2024

Hello @sbidoul, I implemented your suggestion in OCA/oca-addons-repo-template#288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants