🤖obey our machine overlords, implement their kind suggestions

This commit is contained in:
Ondrej Samohel 2025-03-27 17:12:15 +01:00
parent 0c5d95d3d1
commit 4152f9fc5e
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
3 changed files with 2 additions and 4 deletions

View file

@ -79,7 +79,7 @@ pydocstyle.convention = "google"
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = ["ALL"] select = ["ALL"]
ignore = [ ignore = [
"PTH", "PTH",
"ANN101", # must be set in older version of ruff "ANN101", # must be set in older version of ruff
"ANN204", "ANN204",
"COM812", "COM812",
@ -97,8 +97,6 @@ ignore = [
"S404", # subprocess module is possibly insecure "S404", # subprocess module is possibly insecure
"PLC0415", # import must be on top of the file "PLC0415", # import must be on top of the file
"CPY001", # missing copyright header "CPY001", # missing copyright header
"UP045"
] ]
# Allow fix for all enabled rules (when `--fix`) is provided. # Allow fix for all enabled rules (when `--fix`) is provided.

View file

@ -122,7 +122,7 @@ def test_file_locations_validation() -> None:
with pytest.raises(TraitValidationError): with pytest.raises(TraitValidationError):
file_locations_trait.validate_trait(representation) file_locations_trait.validate_trait(representation)
# invalid representation with mutliple file locations but # invalid representation with multiple file locations but
# unrelated to either Sequence or Bundle traits # unrelated to either Sequence or Bundle traits
representation = Representation(name="test", traits=[ representation = Representation(name="test", traits=[
FileLocations(file_paths=[ FileLocations(file_paths=[