diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 118ace0..d390620 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -15,7 +15,7 @@ repos: # args: [--branch, main] - id: trailing-whitespace - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.9.0 + rev: v1.10.0 hooks: - id: python-check-blanket-noqa - id: python-check-mock-methods @@ -24,24 +24,24 @@ repos: - id: python-use-type-annotations - id: text-unicode-replacement-char - repo: https://github.com/asottile/pyupgrade - rev: v2.32.0 + rev: v3.19.1 hooks: - id: pyupgrade args: [--py37-plus] -- repo: https://github.com/asottile/reorder_python_imports - rev: v3.0.1 +- repo: https://github.com/asottile/reorder-python-imports + rev: v3.14.0 hooks: - id: reorder-python-imports - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.20.0 + rev: v2.8.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 7.2.0 hooks: - id: flake8 additional_dependencies: [ @@ -61,7 +61,7 @@ repos: Pygments, ] - repo: https://github.com/guilatrova/tryceratops - rev: v1.0.1 + rev: v2.4.1 hooks: - id: tryceratops # - repo: https://github.com/econchick/interrogate @@ -70,12 +70,12 @@ repos: # - id: interrogate # args: [-v, --fail-under=40] - repo: https://github.com/codespell-project/codespell - rev: v2.1.0 + rev: v2.4.1 hooks: - id: codespell args: [--skip, "*.(html|ipynb)"] - repo: https://github.com/executablebooks/mdformat - rev: 0.7.14 + rev: 0.7.22 hooks: - id: mdformat additional_dependencies: [ @@ -85,7 +85,7 @@ repos: args: [--wrap, "88"] files: (README.md) - repo: https://github.com/executablebooks/mdformat - rev: 0.7.14 + rev: 0.7.22 hooks: - id: mdformat additional_dependencies: [ diff --git a/setup.cfg b/setup.cfg index 179c7ee..a61fff3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,24 +4,19 @@ 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 - License :: OSI Approved :: MIT License Operating System :: MacOS :: MacOS X Operating System :: Microsoft :: Windows 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