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

Maintenance (2024-03-02) #899

Merged
merged 26 commits into from
Mar 3, 2024
Merged

Maintenance (2024-03-02) #899

merged 26 commits into from
Mar 3, 2024

Conversation

jdknight
Copy link
Member

@jdknight jdknight commented Mar 3, 2024

Performs a series of tweaks to the implementation to address linter issues when running ruff.

Removing legacy Python file encoding from sample Python files. They are
not needed for the specific testing or examples, and best to avoid their
promotion in our example. Removing also prevents ruff warnings on their
detection.

Signed-off-by: James Knight <james.d.knight@live.com>
Tweaking the processing of accepting defines from a command line
argument by:

- Moving the value error process outside the defines loop for
   performance (PERF203).
- Adjusting the define loop to be a bit more explicit between a define
   entry and a define's value.

Signed-off-by: James Knight <james.d.knight@live.com>
Since a test asset's line length has been changed [1], the unit test
using this asset also needs to be updated.

[1]: 4e7a6e9

Signed-off-by: James Knight <james.d.knight@live.com>
Adding a noqa warning on using a Sphinx private member variable required
for a workaround (at this time) for this extension's doctree
manipulations.

Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Update various messages defined over multiple lines to be implicitly
concatenated string (ISC002).

Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Update stty calls to use an explicit path, to prevent any unexpected
PATH overrides.

Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
The existing implementation to randomizing the delay for request tries
is not a security concern.

Signed-off-by: James Knight <james.d.knight@live.com>
There is no difference between capturing the init call explicitly or
via the `getattr` style; updating to the simpler variant.

Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
The use of XML parsers targets user-provided SVGs and only targets
users Confluence instances (in debug cases). It is expected that these
are trusted sources for users, so adding noqa's for any linter warnings.

Signed-off-by: James Knight <james.d.knight@live.com>
When searching for legacy configuration options using `getattr`, ensure
defaults are provided to avoid undesired `AttributeError` exceptions.
This logic was intended to not throw exceptions, but never properly
added the default cases to avoid it.

Signed-off-by: James Knight <james.d.knight@live.com>
Publish debug options are only relevant to the exception raised in the
configuration's exception block; moving.

Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Tweaking a series of loops, ifs and exception to cleaning up linter
warnings when running ruff.

Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: James Knight <james.d.knight@live.com>
@jdknight jdknight merged commit 336e231 into main Mar 3, 2024
29 checks passed
@jdknight jdknight deleted the maintenance-2024-03-02 branch March 3, 2024 04:08
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