Skip to content

Conversation

@FilippoOlivo
Copy link
Member

No description provided.


[BASIC]
# Allow redefinition of input builtins
allowed-redefined-builtins=input
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ndem0 this is the restore from 0.2 back to master. Since we use a lot input as kwargs (e.g. in Condition, loss_data,..) I would keep the disable property such that pylint does not complain. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

Ok, but it's a bit dangerous to use builtin names.

Copy link
Member Author

Choose a reason for hiding this comment

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

I suggest to manually disable the warnings inside the files where these are intentionally used (e.g. InputTargetCondition). What do you think @ndem0 @dario-coscia

Copy link
Collaborator

Choose a reason for hiding this comment

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

for me ok!

max-statements=50

# Minimum number of public methods for a class (see R0903).
min-public-methods=0
Copy link
Collaborator

@dario-coscia dario-coscia Mar 11, 2025

Choose a reason for hiding this comment

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

@ndem0 This was inserted because we had a lot of Codacy issues because we have many classes in Condition that are just defined without public methods. Should we keep it like this or go back and don't care about codacy ?

Copy link
Member

Choose a reason for hiding this comment

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

I would remove, it's typically a bad design when you have classes without public methods.
eventually also Conditions will have public methods!

Copy link
Member Author

Choose a reason for hiding this comment

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

Also in this case we can apply the same approach as for input. Let me know what you think @ndem0 @dario-coscia

@FilippoOlivo
Copy link
Member Author

All in all, in my opinion keeping the .pylintrc as it in in master branch is the safer option. However, when we intentionally break some "codacy rules" we can disable the warning inside the file

@ndem0
Copy link
Member

ndem0 commented Mar 12, 2025

Great! It's not a huge problem to break some rules intentionally, but it's safer to keep them in order to have a quick validation that random errors are not committed.

@FilippoOlivo
Copy link
Member Author

If ok for you, I merge this PR

@dario-coscia dario-coscia merged commit 795e4a4 into 0.2 Mar 12, 2025
17 checks passed
@dario-coscia dario-coscia deleted the codacy branch March 12, 2025 16:27
dario-coscia pushed a commit that referenced this pull request Mar 12, 2025
FilippoOlivo added a commit that referenced this pull request Mar 13, 2025
ndem0 pushed a commit that referenced this pull request Mar 19, 2025
FilippoOlivo added a commit to FilippoOlivo/PINA that referenced this pull request Mar 21, 2025
FilippoOlivo added a commit to FilippoOlivo/PINA that referenced this pull request Apr 17, 2025
dario-coscia pushed a commit that referenced this pull request Apr 17, 2025
GiovanniCanali pushed a commit to GiovanniCanali/PINA that referenced this pull request Dec 2, 2025
GiovanniCanali pushed a commit to GiovanniCanali/PINA that referenced this pull request Dec 2, 2025
GiovanniCanali pushed a commit to GiovanniCanali/PINA that referenced this pull request Dec 2, 2025
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