Skip to content

Commit

Permalink
Esper3 new API (#89)
Browse files Browse the repository at this point in the history
* World methods become esper funcs

* add virtual environment in .gitignore

* less strict mypy for pytest

* init ruff config

* quick fixes on esper3 thanks to tests

* update tests to esper3

* update some example scripts to esper3

* fix forgotten clear_dead_entities()

* event handler depends of context
  • Loading branch information
Felecarpp authored Jul 17, 2023
1 parent 19579ea commit 8ce47bc
Show file tree
Hide file tree
Showing 12 changed files with 730 additions and 675 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ docs/_build
.idea/shelf/Uncommitted_changes_before_Update_at_16_01_18_11_17__Default_.xml
.idea/shelf/Uncommitted_changes_before_Update_at_16_01_18_11_17__Default_/shelved.patch
.vscode/settings.json

# Virtual environment
.env
9 changes: 7 additions & 2 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
warn_unused_configs = True
disallow_any_generics = True
disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = True
Expand All @@ -13,3 +11,10 @@ warn_return_any = True
no_implicit_reexport = True
strict_equality = True
strict_concatenate = True

[mypy-esper]
disallow_untyped_defs = True
disallow_untyped_calls = True

[mypy-tests]
check_untyped_defs = True
3 changes: 3 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
select = ["F", "E", "W", "C90", "B", "A", "C4", "G", "T20", "PT", "SLF", "TCH", "RET", "N", "ARG"]
ignore = ["E501"]

Loading

0 comments on commit 8ce47bc

Please sign in to comment.