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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# python test files
.coverage
.pytype
.mypy_cache

# build time temp files
VERSION*
Expand Down
10 changes: 0 additions & 10 deletions .pytype.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Unlike the old `setup.py`-based workflow, an editable install
(`pip install -e .`) is now required before running tests or building
docs. The package uses `importlib.metadata` for version resolution at
runtime, which only works when the package is registered in the
environment. You can no longer run `pytest` or `pytype` directly
environment. You can no longer run `pytest` or `mypy` directly
against the source tree without installing first. If you want to avoid
pulling in all dependencies, `pip install -e . --no-deps` is sufficient
to register the package metadata.
Expand Down
2 changes: 1 addition & 1 deletion build-tools/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Directories to remove
CLEAN_DIRS = [
"build", "dist", "*.egg-info", "clams_python-*",
".pytest_cache", ".pytype", ".hypothesis",
".pytest_cache", ".mypy_cache", ".hypothesis",
"tests/.hypothesis", "htmlcov",
"docs-test",
]
Expand Down
8 changes: 4 additions & 4 deletions build-tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

This script is equivalent to ``make test`` in the Makefile-based repos:
pip install -e ".[test]"
pytype --config .pytype.cfg clams
python -m mypy
python -m pytest --cov=clams --cov-report=xml
"""
import argparse
Expand Down Expand Up @@ -50,10 +50,10 @@ def main():
cwd=project_root,
)

# Run pytype static analysis
print("\n--- Running pytype ---")
# Run mypy static analysis (configured in pyproject.toml)
print("\n--- Running mypy ---")
run_command(
["pytype", "--config", ".pytype.cfg", "clams"],
[sys.executable, "-m", "mypy"],
cwd=project_root,
)

Expand Down
2 changes: 1 addition & 1 deletion clams/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from clams.restify import Restifier
from clams.ver import __version__

__all__ = [AppMetadata, Restifier] + app_all
__all__ = ['AppMetadata', 'Restifier'] + app_all
version_template = "{} (based on MMIF spec: {})"


Expand Down
Loading
Loading