Skip to content

Commit

Permalink
Merge pull request #529 from SpiNNakerManchester/roc_part
Browse files Browse the repository at this point in the history
Typing information and some changes to make that easier
  • Loading branch information
Christian-B committed Nov 1, 2023
2 parents c962251 + 026ec36 commit d49ffca
Show file tree
Hide file tree
Showing 115 changed files with 3,299 additions and 2,845 deletions.
9 changes: 9 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@

[run]
branch = True

[report]
# Coverage should ignore overloads; they're not real code
exclude_lines =
@overload
\.\.\.$
raise\s+NotImplementedError
if\s+TYPE_CHECKING:
#\s*(pragma|PRAGMA)[:\s]?\s*(no|NO)\s*(cover|COVER)
5 changes: 5 additions & 0 deletions .github/workflows/python_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:

- name: Install pip, etc
uses: ./support/actions/python-tools
- name: Install mypy
run: pip install mypy

- name: Install Spinnaker Dependencies
uses: ./support/actions/install-spinn-deps
Expand Down Expand Up @@ -72,6 +74,9 @@ jobs:
package: ${{ env.BASE_PKG }}
language: en_GB

- name: Lint with mypy
run: mypy $BASE_PKG

validate:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
4 changes: 3 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=R,C
disable=R,C,unsubscriptable-object
# False positives for unsubscriptable-object. Mypy better at this class of issue
# See https://github.com/pylint-dev/pylint/issues/1498

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
4 changes: 2 additions & 2 deletions pacman/config_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
BASE_CONFIG_FILE = "pacman.cfg"


def unittest_setup():
def unittest_setup() -> None:
"""
Resets the configurations so only the local default configuration is
included.
Expand All @@ -34,7 +34,7 @@ def unittest_setup():
PacmanDataWriter.mock()


def add_pacman_cfg():
def add_pacman_cfg() -> None:
"""
Add the local configuration and all dependent configuration files.
"""
Expand Down

0 comments on commit d49ffca

Please sign in to comment.