Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Henkel <[email protected]>
  • Loading branch information
ct2034 committed Nov 2, 2024
1 parent 85790a6 commit 2bc0cf6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 29 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,6 @@ jobs:
pytest -rP
env:
PYTHONPATH: ${{github.workspace}}
mypy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python 3.10.12
uses: actions/setup-python@v2
with:
python-version: 3.10.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r planner/mapf_implementations/requirements.txt
pip install -r sim/decentralized/requirements.txt
pip install -r requirements-torch_cpu.txt -f https://download.pytorch.org/whl/cpu/torch_stable.html -f https://data.pyg.org/whl/torch-2.4.0+cpu.html
- name: Type checking with mypy
run: |
mypy
pre-commit:
runs-on: ubuntu-latest
steps:
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ repos:
hooks:
- id: isort
args: [--profile, black]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0'
hooks:
- id: mypy
args: [--ignore-missing-imports]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: 'v1.13.0'
# hooks:
# - id: mypy
# args: [--ignore-missing-imports]
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ def evaluate(fname):
logging.info("fname_graph_adjlist: " + fname_graph_adjlist)

# results
# type: Dict[str, Dict[str, Dict[str, list]]]
eval_results = {SUCCESSFUL: {}, COMPUTATION_TIME: {}, COST: {}}
eval_results = {
SUCCESSFUL: {},
COMPUTATION_TIME: {},
COST: {},
} # type: Dict[str, Dict[str, Dict[str, list]]]
global_seed = random.randint(0, 1000)

# the evaluation per combination
Expand Down
1 change: 0 additions & 1 deletion roadmaps/odrm/odrm_nav/src/goal_manager_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def result_cb(self, msg, i_a):
self.last_status[i_a] = msg.status.status

def save_data(self, data, folder):
# type: (list, str)
fname = (
folder
+ "_".join(self.retrieve_benchmark_metadata())
Expand Down

0 comments on commit 2bc0cf6

Please sign in to comment.