File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed
Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 5858 run : |
5959 source venv/bin/activate
6060 pytest -vx --dist=loadfile -n auto
61+
62+ - name : Run additional tests in bash scripts for Ubuntu
63+ run : |
64+ source venv/bin/activate
65+ bash tests/test_local.bash
66+ bash tests/test_remote.bash
Original file line number Diff line number Diff line change 1- import tomllib
1+ import toml
22import os
33
44with open ("pyproject.toml" , "rb" ) as f :
5- pyproject = tomllib . load ( f )
5+ pyproject = toml . loads ( f . read (). decode ( 'utf-8' ) )
66
77readme_path = pyproject ["project" ]["readme" ]
88
Original file line number Diff line number Diff line change 55import re
66import sys
77from importlib .metadata import version
8- import tomllib
8+ import toml
99
1010from .server import LanguageTool
1111from .utils import LanguageToolError
1414 __version__ = version ("language_tool_python" )
1515except PackageNotFoundError :
1616 with open ("pyproject.toml" , "rb" ) as f :
17- __version__ = tomllib . load ( f )["project" ]["version" ]
17+ __version__ = toml . loads ( f . read (). decode ( 'utf-8' ) )["project" ]["version" ]
1818
1919
2020def parse_args ():
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ urls = { Repository = "https://github.com/jxmorris12/language_tool_python.git" }
1313dependencies = [
1414 " requests" ,
1515 " tqdm" ,
16- " psutil"
16+ " psutil" ,
17+ " toml"
1718]
1819
1920[project .optional-dependencies ]
You can’t perform that action at this time.
0 commit comments