File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ default_language_version:
22 python : python3
33repos :
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
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 :
2827 hooks :
2928 - id : ruff
3029 args : [--fix, --exit-non-zero-on-fix]
30+ exclude : test/data/schema/wrong_syntax.py
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff 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 ))
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def test_if_project_init_is_inspected_then_load_and_schema_is_found():
3232def 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 )
You can’t perform that action at this time.
0 commit comments