Skip to content

Commit 03c1326

Browse files
committed
Remove pydantic dependency. close #11
1 parent dc915e7 commit 03c1326

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+812
-15696
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to the "robotcode" extension will be documented in this file
44

55
## [Unreleased]
66

7+
### added
8+
- remove pydantic dependency
9+
- closes [#11](https://github.com/d-biehl/robotcode/issues/11)
10+
- big refactoring of LSP and DAP types
11+
12+
713
## 0.2.11
814

915
### added

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,3 @@ This is the simpliest way to create an running environment.
5454

5555
TODO
5656

57-
### Speedup things
58-
59-
RobotCode contains everything you need to work with the robot framework in VSCode, but only in a platform-independent version.
60-
To speedup things you can install the platform dependent versions of the following libraries in your python environment. If you use pipenv or poetry you should install it as dev dependencies.
61-
62-
- pydantic
63-
- will install the cython compiled packages
64-
- orjson
65-
- a faster Python JSON library
66-
67-
Example:
68-
69-
```bash
70-
python -m pipenv install --dev pydantic orjson
71-
```
72-
73-

mypy.ini

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
[mypy]
55
python_version = 3.8
6-
plugins = pydantic.mypy
7-
exclude = robotcode/external/|dist|node_modules
86
warn_redundant_casts = True
97
warn_unused_ignores = True
108
strict = True
@@ -23,8 +21,3 @@ ignore_missing_imports = True
2321
; strict_optional = True
2422
; ignore_missing_imports = True
2523

26-
[pydantic-mypy]
27-
init_forbid_extra = True
28-
init_typed = True
29-
warn_required_dynamic_aliases = True
30-
warn_untyped_fields = True

poetry.lock

Lines changed: 64 additions & 136 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ robotframework = "^4.0.0"
1212

1313

1414
[tool.poetry.dev-dependencies]
15-
pydantic = "^1.8.2"
1615
isort = "^5.9.2"
1716
mypy = "^0.910"
1817
flake8 = "^3.9.2"
@@ -28,8 +27,6 @@ robotremoteserver = "^1.1"
2827
Cython = "^0.29.24"
2928
robotframework-robocop = "^1.7.1"
3029
robotframework-tidy = "^1.5.1"
31-
orjson = "^3.6.3"
32-
types-orjson = "^3.6.0"
3330
PyYAML = "^6.0"
3431

3532

robotcode/debugger/__main__.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,6 @@
3737

3838
_logger = LoggingDescriptor(name=__package__)
3939

40-
try:
41-
__import__("typing_extensions")
42-
except ImportError:
43-
_logger.debug("typing_extensions not found, add our external path to sys.path")
44-
file = Path(__file__).resolve()
45-
external_path = Path(file.parents[1], "external", "typing_extensions")
46-
sys.path.append(str(external_path))
47-
48-
try:
49-
__import__("pydantic")
50-
except ImportError:
51-
_logger.debug("pydantic library not found, add our external path to sys.path")
52-
file = Path(__file__).resolve()
53-
external_path = Path(file.parents[1], "external", "pydantic")
54-
sys.path.append(str(external_path))
55-
5640
if TYPE_CHECKING:
5741
from .server import LaucherServer
5842

0 commit comments

Comments
 (0)