Enable flake8-comprehensions linting rules (#267)
See https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4.
This commit is contained in:
@@ -35,7 +35,7 @@ print(f"::group::{product.name}")
|
||||
main = http.fetch_url("https://docs.splunk.com/Documentation/Splunk")
|
||||
soup = BeautifulSoup(main.text, features="html5lib")
|
||||
|
||||
all_versions = list(map(lambda option: option.attrs['value'], soup.select("select#version-select > option")))
|
||||
all_versions = [option.attrs['value'] for option in soup.select("select#version-select > option")]
|
||||
|
||||
# Latest minor release notes contains release notes for all previous minor versions.
|
||||
# For example, 9.0.5 release notes also contains release notes for 9.0.0 to 9.0.4.
|
||||
|
||||
Reference in New Issue
Block a user