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

style(python): Sort and group imports in python/grass #3961

Closed
wants to merge 2 commits into from

Conversation

echoix
Copy link
Member

@echoix echoix commented Jul 1, 2024

Uses a combination of ruff check --output-format=concise --select I --fix 'python/grass', isort --profile=black python/grass and black .

Uses a combination of `ruff check --output-format=concise --select I --fix 'python/grass'`, `isort --profile=black python/grass` and `black .`
Uses a combination of `ruff check --output-format=concise --select I --fix 'python/grass'`, `isort --profile=black python/grass` and `black .`
@github-actions github-actions bot added Python Related code is in Python libraries tests Related to Test Suite notebook labels Jul 1, 2024
import re
import subprocess
import xml.etree.ElementTree as et

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

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.
from collections.abc import Iterable
from io import StringIO
from xml.sax import saxutils

Check notice

Code scanning / Bandit

Using saxutils to parse untrusted XML data is known to be vulnerable to XML attacks. Replace saxutils with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called. Note

Using saxutils to parse untrusted XML data is known to be vulnerable to XML attacks. Replace saxutils with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries notebook Python Related code is in Python tests Related to Test Suite
2 participants