Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable all pycodestyle and isort rules in Ruff and fix violations #1463

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'master' into mmg/stricter-ruff-rule-selection
matt-graham authored Nov 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 4dcb5e21c9f23460cf5d7515ccf6b3f81932508f
13 changes: 7 additions & 6 deletions src/tlo/simulation.py
Original file line number Diff line number Diff line change
@@ -185,11 +185,11 @@ def log_filepath(self) -> Path:

def register(
self,
*modules,
sort_modules=True,
check_all_dependencies=True,
*modules: Module,
sort_modules: bool = True,
check_all_dependencies: bool = True,
auto_register_dependencies: bool = False,
):
) -> None:
"""Register one or more disease modules with the simulation.

:param modules: The disease module(s) to use as part of this simulation.
@@ -208,8 +208,9 @@ def register(
``ADDITIONAL_DEPENDENCIES`` attributes) have been included in the set of
modules to be registered. A :py:exc:`.ModuleDependencyError` exception will
be raised if there are missing dependencies.
:param auto_register_dependencies: Whether to register missing module dependencies or not. If this argument is
set to True, all module dependencies will be automatically registered.
:param auto_register_dependencies: Whether to register missing module dependencies
or not. If this argument is set to True, all module dependencies will be
automatically registered.
"""
if auto_register_dependencies:
modules = [
You are viewing a condensed version of this merge commit. You can view the full changes here.