Skip to content

Commit

Permalink
fix norms
Browse files Browse the repository at this point in the history
  • Loading branch information
aerorahul committed Sep 11, 2024
1 parent 86c6f75 commit ab5b171
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"python.testing.autoTestDiscoverOnSaveEnabled": true,
"python.testing.promptToConfigure": true,
"python.testing.pytestArgs": ["-v", "--color=yes", "--no-cov"],
"python.testing.cwd": "./tests"
"python.testing.cwd": "./tests",
"pre-commit-helper.config": "${workspaceFolder}/.pre-commit-config.yaml",
"pre-commit-helper.runOnSave": "all hooks",
"pre-commit-helper.runOnSaveRegex": "^(.*)\\.(py|c|h)$"
}
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import os
import sys

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src')))
2 changes: 1 addition & 1 deletion tests/test_file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ def test_copy(tmp_path):
FileHandler(config).sync()
except FileNotFoundError as e:
c_file = input_dir_path / 'c.txt'
assert f"Source file '{c_file}' does not exist" in str(e)
assert f"Source file '{c_file}' does not exist" in str(e)

0 comments on commit ab5b171

Please sign in to comment.