Skip to content

style: use truth check instead of == False in api - #81

Merged
firefly-cpp merged 1 commit into
mainfrom
chore/valid-check
Nov 20, 2026
Merged

firefly-cpp merged 1 commit into
mainfrom
chore/valid-check

Conversation

@firefly-cpp

Copy link
Copy Markdown
Owner

Replace data['valid'] == False with not data['valid'] in SucculentAPI.data() and SucculentAPI.export() (ruff/flake8 E712).

valid is always True or False (set in Processing.data() and Processing.export()), so behaviour is unchanged. Full suite: 75 passed.

Not changed on purpose: config['timestamp'] == True in processing.py is also flagged by E712, but a plain truth check there would turn on timestamps for values like the string 'false' in the configuration, which is a behaviour change.


Generated by Claude Code

Replace `data['valid'] == False` with `not data['valid']` in data()
and export(). `valid` is always a bool, so behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCvw8haRnmyrVKrLkz5Yf8
@firefly-cpp
firefly-cpp merged commit 20c9633 into main Nov 20, 2026
12 checks passed
@firefly-cpp
firefly-cpp deleted the chore/valid-check branch November 20, 2026 10:51
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.

2 participants