Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .coveragerc

This file was deleted.

16 changes: 0 additions & 16 deletions .mypy.ini

This file was deleted.

35 changes: 35 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[tool.coverage.run]
source = [ "." ]
omit = [
"./test/*",
"./third_party/*",
"./tools/emcoverage.py",
"test.py",
]

[tool.mypy]
mypy_path = "third_party/,third_party/ply,third_party/websockify"
files = [ "." ]
exclude = '''
(?x)(
cache |
third_party |
conf\.py |
emrun\.py |
site/source/_themes/ |
tools/scons/site_scons/site_tools/emscripten/__init__\.py |
site/source/get_wiki\.py |
test/parse_benchmark_output\.py
)'''

[[tool.mypy.overrides]]
module = [
"tools.create_dom_pk_codes",
"tools.webidl_binder",
"tools.toolchain_profiler",
"tools.filelock",
"tools.find_bigvars",
"leb128",
"ply.*",
]
ignore_errors = true
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
flake8==5.0.4
flake8-bugbear==22.9.23
flake8-unused-arguments==0.0.11
coverage==5.5
coverage[toml]==5.5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not seen this syntax before.. what does it mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pip extras syntax is broadly used... See example 7: https://pip.pypa.io/en/stable/cli/pip_install/#examples

https://coverage.readthedocs.io/en/latest/config.html#configuration-reference

Coverage.py will read from pyproject.toml if TOML support is available, either because you are running on Python 3.11 or later, or because you installed with the toml extra (pip install coverage[toml]).

mypy==0.971
types-requests==2.27.14
unittest-xml-reporting==3.1.0
Expand Down
Loading