From 386f1aaa11feb1715276dd1307bc4b834e72b8ac Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 22:41:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.cfg | 8 ++------ src/scipy_dev/__init__.py | 1 + src/scipy_dev/config.py | 1 + src/scipy_dev/presentation/main.md | 6 +++--- src/scipy_dev/source_repo/test_installation.py | 1 + 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/setup.cfg b/setup.cfg index 179c7ee..3c06564 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,7 +4,7 @@ long_description = file: README.md long_description_content_type = text/markdown url = hhttps://github.com/opensourceeconomics/scipy-2022-dev license = MIT -license_file = LICENSE +license_files = LICENSE platforms = unix, linux, osx, cygwin, win32 classifiers = Intended Audience :: Science/Research @@ -14,14 +14,10 @@ classifiers = Operating System :: POSIX Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 [options] packages = find: -python_requires = >=3.7 +python_requires = >=3.9 include_package_data = True package_dir = =src diff --git a/src/scipy_dev/__init__.py b/src/scipy_dev/__init__.py index 73c5b3d..927a467 100644 --- a/src/scipy_dev/__init__.py +++ b/src/scipy_dev/__init__.py @@ -1,4 +1,5 @@ """This module contains the main namespace of fte.""" + # Import the version from _version.py which is dynamically created by setuptools-scm # when the project is installed with ``pip install -e .``. Do not put it into version # control! diff --git a/src/scipy_dev/config.py b/src/scipy_dev/config.py index c06753f..ba879d3 100644 --- a/src/scipy_dev/config.py +++ b/src/scipy_dev/config.py @@ -1,4 +1,5 @@ """This module contains the general configuration of the project.""" + from pathlib import Path diff --git a/src/scipy_dev/presentation/main.md b/src/scipy_dev/presentation/main.md index 6a1c9fd..a0d03fa 100644 --- a/src/scipy_dev/presentation/main.md +++ b/src/scipy_dev/presentation/main.md @@ -102,7 +102,7 @@ University of Bonn ### Preview of practice session - Translate a criterion function from math to code - + - Use `scipy.optimize` to minimize the criterion function --- @@ -920,7 +920,7 @@ em.convergence_plot( # Bounds and Constraints ---- +--- ### Preview of practice session @@ -1621,7 +1621,7 @@ section.split { # JAX and JAXopt ---- +--- ### Preview of practice session(s) - Solve an optimization problem using JAX gradients diff --git a/src/scipy_dev/source_repo/test_installation.py b/src/scipy_dev/source_repo/test_installation.py index 5734c8e..36f09b2 100644 --- a/src/scipy_dev/source_repo/test_installation.py +++ b/src/scipy_dev/source_repo/test_installation.py @@ -1,4 +1,5 @@ """Test that the environment is correctly installed.""" + from distutils.spawn import find_executable