Skip to content

Move 'import lxml' to third-party block of imports - #2803

Merged
shimwell merged 1 commit into
openmc-dev:developfrom
paulromano:lxml-imports
Dec 13, 2023
Merged

shimwell merged 1 commit into
openmc-dev:developfrom
paulromano:lxml-imports

Conversation

@paulromano

Copy link
Copy Markdown
Contributor

Description

Very simple PR here that just fixes where import lxml appears in Python scripts. Per PEP8, imports should be grouped in the following order: standard-library imports, third-party imports, local imports. A few unused imports have been removed while I was at it.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@shimwell shimwell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Saw this easy to review PR and gave it a speedy review. All looks good to me. I see a few other unused imports were removed as well, nice.

@shimwell

Copy link
Copy Markdown
Member

Will merge tomorrow if there are no objections

@shimwell shimwell added the Merging Soon PR will be merged in < 24 hrs if no further comments are made. label Dec 12, 2023
@shimwell
shimwell merged commit 85c963e into openmc-dev:develop Dec 13, 2023
@paulromano
paulromano deleted the lxml-imports branch December 15, 2023 01:13
church89 pushed a commit to openmsr/openmc that referenced this pull request Jul 18, 2024
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merging Soon PR will be merged in < 24 hrs if no further comments are made.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants