Skip to content

Commit

Permalink
Bump Sphinx Version (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
wistuba authored Mar 15, 2023
1 parent d53ca33 commit db9aec5
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3
id: download
Expand Down
5 changes: 3 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def setup(app):
project = "Renate"
version = renate.__version__
release = renate.__version__
copyright = f"{datetime.datetime.now().year}, Amazon"
copyright = f"2022-{datetime.datetime.now().year}, Amazon"


extensions = [
Expand Down Expand Up @@ -89,7 +89,8 @@ def setup(app):
html_sidebars = {"**": ["sidebar-nav-bs"]}
html_theme_options = {
"primary_sidebar_end": [],
"footer_items": ["copyright"],
"footer_start": ["copyright"],
"footer_end": [],
"icon_links": [
{
"name": "GitHub",
Expand Down
8 changes: 4 additions & 4 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
docutils==0.19
Sphinx==5.3.0
Sphinx==6.1.3
sphinx-copybutton==0.5.1
sphinx-hoverxref==1.3.0
sphinxext-opengraph==0.7.4
pydata-sphinx-theme==0.12.0
sphinx-autodoc-typehints==1.19.5
sphinxext-opengraph==0.8.1
pydata-sphinx-theme==0.13.1
sphinx-autodoc-typehints==1.22.0
1 change: 0 additions & 1 deletion examples/simple_classifier_cifar10/start_with_hpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
}

if __name__ == "__main__":

AWS_ID = "0123456789" # use your AWS account id here
AWS_REGION = "us-west-2" # use your AWS preferred region here

Expand Down
1 change: 0 additions & 1 deletion examples/simple_classifier_cifar10/start_without_hpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
}

if __name__ == "__main__":

AWS_ID = "0123456789" # use your AWS account id here
AWS_REGION = "us-west-2" # use your AWS preferred region here

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
}

if __name__ == "__main__":

run_training_job(
config_space=configuration,
mode="max",
Expand Down
1 change: 0 additions & 1 deletion examples/train_mlp_locally/start_training_with_hpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from renate.utils.config_spaces import config_space

if __name__ == "__main__":

# we run the first training job on the MNIST classes [0-4]
run_training_job(
config_space=config_space("RD"), # getting the default search space
Expand Down
1 change: 0 additions & 1 deletion examples/train_mlp_locally/start_training_without_hpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
}

if __name__ == "__main__":

# we run the first training job on the MNIST classes [0-4]
run_training_job(
config_space=config_space,
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ dynamic = ["version", "readme", "dependencies"]

[project.optional-dependencies]
dev = [
"black~=22.12.0",
"black==23.1.0",
# PyTest Dependencies
"pytest~=7.2.0",
"pytest-cov~=4.0.0",
"pytest-helpers-namespace~=2021.12.29",
"pytest==7.2.2",
"pytest-cov==4.0.0",
"pytest-helpers-namespace==2021.12.29",
]

[tool.setuptools.packages.find]
Expand Down
1 change: 0 additions & 1 deletion src/renate/cli/parsing_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def get_updater_and_learner_kwargs(
def parse_arguments(
config_module: ModuleType, function_names: List[str], ignore_args: List[str]
) -> Tuple[argparse.Namespace, Dict[str, Any]]:

arguments = _standard_arguments()
_add_hyperparameter_arguments(arguments)
function_args = {}
Expand Down
2 changes: 1 addition & 1 deletion src/renate/utils/avalanche.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def to_avalanche_dataset(dataset: Union[Dataset, DataBuffer]) -> AvalancheDatase
x_data.append(x)
y_data.append(y)
else:
for (x, y) in dataset:
for x, y in dataset:
x_data.append(x)
if not isinstance(y, int):
y = y.item()
Expand Down

0 comments on commit db9aec5

Please sign in to comment.