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

Assorted fixes for new pylint warnings #2708

Merged
merged 7 commits into from
May 11, 2022

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented May 11, 2022

This fixes a number of warnings newly added in recent pylint versions. Among them:

  • prefer use of formatted string literals
  • use with construct where possible
  • consistent use of parameter names in inherited functions
  • remove of redundant unicode marker before strings

This should fix all issues that showed when using Ubuntu 22.04 in #2691.

lonvia added 7 commits May 11, 2022 09:01
Replaces the various repeated format strings throughout the code.
Use psycopg2 SQL formatters for SQL and formatted string literals
everywhere else.
Includes more use of 'with', adding encodings to open statements
and a couple of issues with parameter renaming.
This checker encourages bad behaviour (namely changing the static
status of a function during inheritence) and will be made optional
in upcoming versions of pylint.
Some versions of pylint are oddly picky.
@lonvia lonvia merged commit a7a5f01 into osm-search:master May 11, 2022
@lonvia lonvia deleted the use-format-literals branch May 11, 2022 12:29
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.

1 participant