Skip to content

Commit

Permalink
Remove cmake-lint because it crashes during install
Browse files Browse the repository at this point in the history
And remove those test files
  • Loading branch information
bitplane committed Feb 9, 2024
1 parent c5e917e commit cc625a2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
16 changes: 6 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: '^merge-files/tests/e2e/test-data/.*'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-toml
- id: check-symlinks
Expand All @@ -11,29 +11,25 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: [--line-length=88]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
args: ['--config=.flake8']
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.2
rev: v0.9.0.6
hooks:
- id: shellcheck
args: [-eSC1091]
- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.9
rev: v0.9.17
hooks:
- id: pymarkdown
- repo: https://github.com/cmake-lint/cmake-lint
rev: 1.4.2
hooks:
- id: cmakelint
1 change: 0 additions & 1 deletion dest_file.txt

This file was deleted.

12 changes: 6 additions & 6 deletions ienv/tests/test_symlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from ienv.squish import replace_with_symlink


def test_replace_with_symlink_file_exists():
src = Path("test_file.txt")
dest = Path("dest_file.txt")
def test_replace_with_symlink_file_exists(tmpdir):
src = Path(tmpdir / "test_file.txt")
dest = Path(tmpdir / "dest_file.txt")

src.write_text("Hello")
dest.write_text("World")
Expand All @@ -17,9 +17,9 @@ def test_replace_with_symlink_file_exists():
assert src.resolve() == dest.absolute()


def test_replace_with_symlink_preserve_attributes():
src = Path("test_file.txt")
dest = Path("dest_file.txt")
def test_replace_with_symlink_preserve_attributes(tmpdir):
src = Path(tmpdir / "test_file.txt")
dest = Path(tmpdir / "dest_file.txt")

src.write_text("Hello")
dest.write_text("World")
Expand Down
1 change: 0 additions & 1 deletion test_file.txt

This file was deleted.

0 comments on commit cc625a2

Please sign in to comment.