mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
🤖obey our machine overlords, implement their kind suggestions
This commit is contained in:
parent
0c5d95d3d1
commit
4152f9fc5e
3 changed files with 2 additions and 4 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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=[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue