Skip to content

Commit 76d85fc

Browse files
authored
chore: add samples directory to lint paths (#2438)
1 parent 604c2bb commit 76d85fc

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

gapic/templates/noxfile.py.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ BLACK_VERSION = "black[jupyter]==23.7.0"
1616
ISORT_VERSION = "isort==5.11.0"
1717

1818
{% if api.naming.module_namespace %}
19-
LINT_PATHS = ["docs", "{{ api.naming.module_namespace[0] }}", "tests", "noxfile.py", "setup.py"]
19+
LINT_PATHS = ["docs", "{{ api.naming.module_namespace[0] }}", "samples", "tests", "noxfile.py", "setup.py"]
2020
{% else %}
21-
LINT_PATHS = ["docs", "{{ api.naming.versioned_module_name }}", "tests", "noxfile.py", "setup.py"]
21+
LINT_PATHS = ["docs", "{{ api.naming.versioned_module_name }}", "samples", "tests", "noxfile.py", "setup.py"]
2222
{% endif %}
2323

2424
ALL_PYTHON = [

tests/integration/goldens/asset/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
BLACK_VERSION = "black[jupyter]==23.7.0"
2727
ISORT_VERSION = "isort==5.11.0"
2828

29-
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
29+
LINT_PATHS = ["docs", "google", "samples", "tests", "noxfile.py", "setup.py"]
3030

3131
ALL_PYTHON = [
3232
"3.7",

tests/integration/goldens/credentials/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
BLACK_VERSION = "black[jupyter]==23.7.0"
2727
ISORT_VERSION = "isort==5.11.0"
2828

29-
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
29+
LINT_PATHS = ["docs", "google", "samples", "tests", "noxfile.py", "setup.py"]
3030

3131
ALL_PYTHON = [
3232
"3.7",

tests/integration/goldens/eventarc/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
BLACK_VERSION = "black[jupyter]==23.7.0"
2727
ISORT_VERSION = "isort==5.11.0"
2828

29-
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
29+
LINT_PATHS = ["docs", "google", "samples", "tests", "noxfile.py", "setup.py"]
3030

3131
ALL_PYTHON = [
3232
"3.7",

tests/integration/goldens/logging/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
BLACK_VERSION = "black[jupyter]==23.7.0"
2727
ISORT_VERSION = "isort==5.11.0"
2828

29-
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
29+
LINT_PATHS = ["docs", "google", "samples", "tests", "noxfile.py", "setup.py"]
3030

3131
ALL_PYTHON = [
3232
"3.7",

tests/integration/goldens/logging_internal/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
BLACK_VERSION = "black[jupyter]==23.7.0"
2727
ISORT_VERSION = "isort==5.11.0"
2828

29-
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
29+
LINT_PATHS = ["docs", "google", "samples", "tests", "noxfile.py", "setup.py"]
3030

3131
ALL_PYTHON = [
3232
"3.7",

tests/integration/goldens/redis/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
BLACK_VERSION = "black[jupyter]==23.7.0"
2727
ISORT_VERSION = "isort==5.11.0"
2828

29-
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
29+
LINT_PATHS = ["docs", "google", "samples", "tests", "noxfile.py", "setup.py"]
3030

3131
ALL_PYTHON = [
3232
"3.7",

tests/integration/goldens/redis_selective/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
BLACK_VERSION = "black[jupyter]==23.7.0"
2727
ISORT_VERSION = "isort==5.11.0"
2828

29-
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
29+
LINT_PATHS = ["docs", "google", "samples", "tests", "noxfile.py", "setup.py"]
3030

3131
ALL_PYTHON = [
3232
"3.7",

0 commit comments

Comments
 (0)