From 92dccd0751fe3522095ab2eecb76efc696fb84d4 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Tue, 7 Sep 2021 14:02:34 -0500 Subject: Only use and install `mslex` on Windows (#36) * Fix lint issues where encoding was not specified * Only use and install mslex on Windows * Escape backslash in test_windows * Alter Windows CI name Since we actually have some tests other than the path sanity test, it probably makes sense to just call it a Windows test now. * Disable pylint issue with mslex import It's raising an unable to import issue with that line, which makes sense since mslex wouldn't be installed on any other platform other than Windows, but it also wouldn't be run on any other platform so it seems to be a non issue. Co-authored-by: Eugene Triguba --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index ac87bb8..9b6e52e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ task = 'taskipy.cli:main' python = "^3.6" toml = "^0.10.0" psutil = "^5.7.2" -mslex = "^0.3.0" +mslex = { version = "^0.3.0", markers = "sys_platform == 'win32'" } colorama = "^0.4.4" [tool.poetry.dev-dependencies] @@ -36,7 +36,7 @@ psutil = "^5.6.7" test = { cmd = "python -m unittest -v tests/test_*.py", help = "runs all tests" } post_test = "./task lint" -run_unittest_as_windows_sanity = { cmd = "python -m unittest -v", help = "this is a command that is run by our Windows CI on Github" } +test_windows = { cmd = "python -m unittest -v tests\\test_windows.py", help = "this is a command that is run by our Windows CI on Github" } lint = { cmd = "./task lint_pylint && ./task lint_mypy", help = "lint project with pylint for style and mypy for typings" } lint_pylint = "pylint tests taskipy" -- cgit v1.2.3