Skip to content

Commit 2c69b6e

Browse files
committed
fix pre-commit
1 parent c17caaf commit 2c69b6e

5 files changed

Lines changed: 5 additions & 41 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ default_language_version:
22
python: python3
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v5.0.0
5+
rev: v4.6.0
66
hooks:
77
- id: check-added-large-files
88
- id: check-ast
@@ -12,7 +12,6 @@ repos:
1212
- id: check-json
1313
- id: check-toml
1414
- id: check-yaml
15-
exclude: mkdocs.yml
1615
- repo: https://github.com/pre-commit/mirrors-mypy
1716
rev: v1.15.0
1817
hooks:
@@ -28,3 +27,4 @@ repos:
2827
hooks:
2928
- id: ruff
3029
args: [--fix, --exit-non-zero-on-fix]
30+
exclude: test/data/schema/wrong_syntax.py

mkdocs.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

requirements-docs.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/dac/_input/pyproject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def generate_pyproject_toml(self) -> str:
3131
def _get_list_of_project_dependencies(self) -> List[str]:
3232
splitted_by_newline = self.project_dependencies.splitlines()
3333
splitted_by_newline_or_comma = [s for ss in splitted_by_newline for s in ss.split(";")]
34-
return sorted(map(lambda x: x.strip(), splitted_by_newline_or_comma))
34+
return sorted(map(str.strip, splitted_by_newline_or_comma))

test/unit_test/_packing/data_as_code_project_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_if_project_init_is_inspected_then_load_and_schema_is_found():
3232
def test_if_project_load_is_inspected_then_has_same_content_as_original():
3333
with input_with_self_contained_data() as config:
3434
with data_as_code_project(config=config) as proj_dir:
35-
project_load_path = proj_dir / "src" / config.pyproject.project_name / f"{DaCProjectFactory.load_file_name}"
35+
project_load_path = proj_dir / "src" / config.pyproject.project_name / str(DaCProjectFactory.load_file_name)
3636
assert project_load_path.exists()
3737
assert filecmp.cmp(config.load_path, project_load_path)
3838

@@ -41,7 +41,7 @@ def test_if_project_schema_is_inspected_then_has_same_content_as_original():
4141
with input_with_self_contained_data() as config:
4242
with data_as_code_project(config=config) as proj_dir:
4343
project_schema_path = (
44-
proj_dir / "src" / config.pyproject.project_name / f"{DaCProjectFactory.schema_file_name}"
44+
proj_dir / "src" / config.pyproject.project_name / str(DaCProjectFactory.schema_file_name)
4545
)
4646
assert project_schema_path.exists()
4747
assert filecmp.cmp(config.schema_path, project_schema_path)

0 commit comments

Comments
 (0)