Skip to content

Fixed some warnings/errors detected by pylint#227

Merged
larsewi merged 3 commits into
cfengine:masterfrom
larsewi:lint
Jun 5, 2025
Merged

Fixed some warnings/errors detected by pylint#227
larsewi merged 3 commits into
cfengine:masterfrom
larsewi:lint

Conversation

@larsewi

@larsewi larsewi commented Jun 5, 2025

Copy link
Copy Markdown
Contributor
  • Fixed string having 1 placeholder but 2 substitutions
  • Removed redefention of get_args from line 14
  • commands.py: Removed unused imports

larsewi added 3 commits June 5, 2025 09:10
E.g., the following causes a traceback, due to operator precedence.

```
>>> "%s " + "%s" % ("Hello", "CFEngine")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
```

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
- cfbs.pretty.MODULE_KEYS
- cfbs.pretty.TOP_LEVEL_KEYS
- cfbs.git.git_commit

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi larsewi requested review from jakub-nt and victormlg June 5, 2025 07:28
@larsewi larsewi merged commit 4738c43 into cfengine:master Jun 5, 2025
11 checks passed
@larsewi larsewi deleted the lint branch April 27, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants