Skip to content

Commit 9a61be1

Browse files
committed
lint: Enable flake8-executable
* Remove exectuable flag from a couple of files * Half of the test files have a shebang (but are still not executable): remove the shebang Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent d6c1a22 commit 9a61be1

17 files changed

Lines changed: 1 addition & 27 deletions

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ select = [
9090
"D", # pydocstyle
9191
"DTZ", # flake8-datetimez
9292
"E", # pycodestyle
93+
"EXE", # flake8-executable
9394
"F", # pyflakes
9495
"I", # isort
9596
"ISC", # flake8-implicit-str-concat

tests/__init__.py

100755100644
File mode changed.

tests/repository_simulator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
31
# Copyright 2021, New York University and the TUF contributors
42
# SPDX-License-Identifier: MIT OR Apache-2.0
53

tests/test_api.py

100755100644
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
31
# Copyright 2020, New York University and the TUF contributors
42
# SPDX-License-Identifier: MIT OR Apache-2.0
53
"""Unit tests for api/metadata.py"""

tests/test_examples.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
# Copyright 2020, New York University and the TUF contributors
32
# SPDX-License-Identifier: MIT OR Apache-2.0
43
"""Unit tests for 'examples' scripts."""

tests/test_fetcher_ng.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
31
# Copyright 2021, New York University and the TUF contributors
42
# SPDX-License-Identifier: MIT OR Apache-2.0
53

tests/test_metadata_eq_.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
31
# Copyright New York University and the TUF contributors
42
# SPDX-License-Identifier: MIT OR Apache-2.0
53

tests/test_updater_consistent_snapshot.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
31
# Copyright 2021, New York University and the TUF contributors
42
# SPDX-License-Identifier: MIT OR Apache-2.0
53

tests/test_updater_delegation_graphs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
31
# Copyright 2021, New York University and the TUF contributors
42
# SPDX-License-Identifier: MIT OR Apache-2.0
53

tests/test_updater_fetch_target.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
31
# Copyright 2021, New York University and the TUF contributors
42
# SPDX-License-Identifier: MIT OR Apache-2.0
53

0 commit comments

Comments
 (0)