-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
style(scripts): Sort and group imports #3963
Conversation
Uses a combination of `ruff check --output-format=concise --select I --fix scripts`, `isort --profile=black scripts` and `black .`
@@ -65,11 +65,10 @@ | |||
|
|||
import os | |||
import sys | |||
import xml.etree.ElementTree as etree |
Check notice
Code scanning / Bandit
Using xml.etree.ElementTree to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.etree.ElementTree with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called. Note
@@ -18,10 +18,9 @@ | |||
""" | |||
|
|||
import pathlib | |||
|
|||
import xml.etree.ElementTree as etree |
Check notice
Code scanning / Bandit
Using xml.etree.ElementTree to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.etree.ElementTree with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called. Note
import re # only needed for GDAL version < 2.4.1 | ||
import sys | ||
import xml.etree.ElementTree as ET # only needed for GDAL version < 2.4.1 |
Check notice
Code scanning / Bandit
Using xml.etree.ElementTree to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.etree.ElementTree with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called. Note
Uses a combination of
ruff check --output-format=concise --select I --fix scripts
,isort --profile=black scripts
andblack .
Continues on the same PRs as #3961, #3959, and #3962