Skip to content

Commit 08dfa6c

Browse files
update
1 parent 6cc2090 commit 08dfa6c

File tree

8 files changed

+403
-278
lines changed

8 files changed

+403
-278
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: true
2222
matrix:
23-
python-version: [ "3.13"]
23+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2424

2525
steps:
2626
- uses: actions/checkout@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
uv.lock
22
.venv/
3+
coverage.xml
34
__pycache__/
45

56
# Packages

doc/conf.py

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,62 @@
1-
# -*- coding: utf-8 -*-
2-
31
import pyunlocbox
42

53
extensions = [
6-
'sphinx.ext.viewcode',
7-
'sphinx.ext.autosummary',
8-
'sphinx.ext.mathjax',
9-
'sphinx.ext.inheritance_diagram',
4+
"sphinx.ext.viewcode",
5+
"sphinx.ext.autosummary",
6+
"sphinx.ext.mathjax",
7+
"sphinx.ext.inheritance_diagram",
108
]
119

12-
extensions.append('sphinx.ext.autodoc')
10+
extensions.append("sphinx.ext.autodoc")
1311
autodoc_default_options = {
14-
'members': True,
15-
'undoc-members': True,
16-
'show-inheritance': True,
17-
'member-order': 'bysource', # alphabetical, groupwise, bysource
12+
"members": True,
13+
"undoc-members": True,
14+
"show-inheritance": True,
15+
"member-order": "bysource", # alphabetical, groupwise, bysource
1816
}
1917

20-
extensions.append('sphinx.ext.intersphinx')
18+
extensions.append("sphinx.ext.intersphinx")
2119
intersphinx_mapping = {
22-
'python': ('https://docs.python.org/3', None),
23-
'numpy': ('https://numpy.org/doc/stable', None),
24-
'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
25-
'matplotlib': ('https://matplotlib.org', None),
26-
'pygsp': ('https://pygsp.readthedocs.io/en/stable', None),
20+
"python": ("https://docs.python.org/3", None),
21+
"numpy": ("https://numpy.org/doc/stable", None),
22+
"scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
23+
"matplotlib": ("https://matplotlib.org", None),
24+
"pygsp": ("https://pygsp.readthedocs.io/en/stable", None),
2725
}
2826

29-
extensions.append('numpydoc')
27+
extensions.append("numpydoc")
3028
numpydoc_show_class_members = False
3129

32-
extensions.append('matplotlib.sphinxext.plot_directive')
30+
extensions.append("matplotlib.sphinxext.plot_directive")
3331
plot_include_source = True
3432
plot_html_show_source_link = False
3533
plot_html_show_formats = False
36-
plot_working_directory = '.'
34+
plot_working_directory = "."
3735

38-
extensions.append('sphinx_copybutton')
36+
extensions.append("sphinx_copybutton")
3937
copybutton_prompt_text = ">>> "
4038

41-
extensions.append('sphinxcontrib.bibtex')
42-
bibtex_bibfiles = ['references.bib']
39+
extensions.append("sphinxcontrib.bibtex")
40+
bibtex_bibfiles = ["references.bib"]
4341

44-
exclude_patterns = ['_build']
45-
source_suffix = '.rst'
46-
master_doc = 'index'
42+
exclude_patterns = ["_build"]
43+
source_suffix = ".rst"
44+
master_doc = "index"
4745

48-
project = 'PyUNLocBoX'
46+
project = "PyUNLocBoX"
4947
version = pyunlocbox.__version__
5048
release = pyunlocbox.__version__
51-
copyright = 'EPFL LTS2'
49+
copyright = "EPFL LTS2"
5250

53-
pygments_style = 'sphinx'
54-
html_theme = 'sphinx_rtd_theme'
51+
pygments_style = "sphinx"
52+
html_theme = "sphinx_rtd_theme"
5553
html_theme_options = {
56-
'navigation_depth': 2,
54+
"navigation_depth": 2,
5755
}
5856
latex_elements = {
59-
'papersize': 'a4paper',
60-
'pointsize': '10pt',
57+
"papersize": "a4paper",
58+
"pointsize": "10pt",
6159
}
6260
latex_documents = [
63-
('index', 'pyunlocbox.tex', 'PyUNLocBoX documentation',
64-
'EPFL LTS2', 'manual'),
61+
("index", "pyunlocbox.tex", "PyUNLocBoX documentation", "EPFL LTS2", "manual"),
6562
]

pyunlocbox/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
r"""
42
The package is mainly organized around two class hierarchies: the functions and
53
the solvers. Instantiated functions represent convex functions to optimize.
@@ -17,18 +15,20 @@
1715
1816
"""
1917

20-
from pyunlocbox import functions # noqa: F401
21-
from pyunlocbox import solvers # noqa: F401
2218
from pyunlocbox import acceleration # noqa: F401
19+
from pyunlocbox import functions # noqa: F401
2320
from pyunlocbox import operators # noqa: F401
21+
from pyunlocbox import solvers # noqa: F401
2422

25-
__version__ = '0.5.2'
26-
__release_date__ = '2017-12-15'
23+
__version__ = "0.5.2"
24+
__release_date__ = "2017-12-15"
2725

2826

2927
def test(): # pragma: no cover
3028
"""Run the test suite."""
3129
import unittest
30+
3231
# Lazy as it might be slow and require additional dependencies.
3332
from pyunlocbox.tests import suite
33+
3434
unittest.TextTestRunner(verbosity=2).run(suite)

0 commit comments

Comments
 (0)