Skip to content

Commit 19a07f6

Browse files
committed
Resolve lint:typing and rst issues
1 parent a502f9a commit 19a07f6

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

doc/user_guide/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ forward, and you just can use the example *noxfile.py* below.
162162

163163

164164
6. Set up the pre-commit hooks [optional]
165-
++++++++++++++++++++++++++++++++++++++++
165+
+++++++++++++++++++++++++++++++++++++++++
166166

167167
#. Add a :code:`.pre-commit-config.yaml` file to your project root
168168

exasol/toolbox/nox/_shared.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from noxconfig import PROJECT_CONFIG
1919

20-
DEFAULT_PATH_FILTERS = ("dist", ".eggs", "venv", ".poetry")
20+
DEFAULT_PATH_FILTERS = {"dist", ".eggs", "venv", ".poetry"}
2121
DOCS_OUTPUT_DIR = ".html-documentation"
2222

2323

@@ -30,13 +30,10 @@ def python_files(project_root: Path) -> Iterable[Path]:
3030
"""
3131
Returns iterable of python files after removing unwanted paths
3232
"""
33-
deny_list = tuple(DEFAULT_PATH_FILTERS + PROJECT_CONFIG.path_filters)
33+
deny_list = DEFAULT_PATH_FILTERS.union(set(PROJECT_CONFIG.path_filters))
3434

3535
files = project_root.glob("**/*.py")
36-
for entry in deny_list:
37-
files = list(filter(lambda path: entry not in path.parts, files))
38-
39-
return files
36+
return [path for path in files if not set(path.parts).intersection(deny_list)]
4037

4138

4239
def _version(session: Session, mode: Mode, version_file: Path) -> None:

test/unit/nox/_shared_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def path_filter_directory():
2424

2525
@pytest.fixture(scope="session")
2626
def directories(package_directory, path_filter_directory):
27-
yield (package_directory, path_filter_directory) + DEFAULT_PATH_FILTERS
27+
yield DEFAULT_PATH_FILTERS.union({package_directory, path_filter_directory})
2828

2929

3030
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)