Closed 0xDEC0DE closed 9 months ago
soufi/finders/alma.py
line 33 at r1 (raw file):
XML. Someone kill it now please.
Worse, it's XPath! :laughing:
soufi/tests/finders/test_alma_finder.py
line 87 at r1 (raw file):
Maybe worth checking these are generators? Maybe not, up to you.
I don't think it is.
soufi/tests/finders/test_alma_finder.py
line 29 at r1 (raw file):
This exact same code is in a few places - it would be taken as a kindness to move it to the factory. Bonus points for including it in a custom patch method that does everything in a one-liner call (similar to what we do in our other projects).
I will do this as a follow-on commit.
soufi/functional/test_functional.py
line 280 at r1 (raw file):
I'd honestly prefer multi-line continuation strings over bypassing the linter.
It is FAR less readable. And in context, this is a big, dumb text slug anyhow...
soufi/testing/base.py
line 1 at r3 (raw file):
# Copyright (c) 2021 Cisco Systems, Inc. and its affiliates
Yer missed one
soufi/tests/finders/test_centos_finder.py
line 1 at r3 (raw file):
# Copyright (c) 2021 Cisco Systems, Inc. and its affiliates
Another!
soufi/tests/finders/test_gem_finder.py
line 1 at r3 (raw file):
# Copyright (c) 2021 Cisco Systems, Inc. and its affiliates
Guess what
soufi/tests/finders/test_golang_finder.py
line 1 at r3 (raw file):
# Copyright (c) 2021 Cisco Systems, Inc. and its affiliates
Heyo
soufi/tests/finders/test_java_finder.py
line 1 at r3 (raw file):
# Copyright (c) 2021 Cisco Systems, Inc. and its affiliates
lol
soufi/tests/finders/test_npm_finder.py
line 1 at r3 (raw file):
# Copyright (c) 2021 Cisco Systems, Inc. and its affiliates
I give up
soufi/testing/base.py
line 1 at r3 (raw file):
Yer missed one
Oh, I only put this year's copyright on the new files, since they were added this year.
Do you really want to roll the copyright on every file? Or just the files I've touched?
And should we therefore be rolling the copyright on every modification? Seems extreme.
As I understand things from the legal team, we have to keep the copyright year current on any files we touch.
A sensibly-distributed little RPM-based distro:
https://repo.almalinux.org/
This finder tries to take the best bits from the UBI, CentOS, and Photon OS finders to make something small, no-nonsense, and performant.
Drive-by: banish all now-unused
nosec
markers, and references to silly things Bandit used to do.Fixes: Issue #40
This change is