Skip to content

Commit 5066059

Browse files
committed
Tidy requirements
1 parent 39c3b97 commit 5066059

File tree

9 files changed

+27
-30
lines changed

9 files changed

+27
-30
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ jobs:
2020
- name: Install requirements
2121
run: |
2222
pip install -U pip
23-
pip install .[test]
24-
pip install -r docs/requirements.txt
23+
pip install .[dev]
2524
2625
- name: Log installed environment
2726
run: |

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- repo: https://github.com/psf/black
1212
rev: 24.4.0
1313
hooks:
14-
- id: black
14+
- id: black-jupyter
1515

1616
- repo: local
1717
hooks:
@@ -20,8 +20,8 @@ repos:
2020
entry: etc/check-copyright.sh
2121
language: script
2222
exclude: |
23-
(?x)^(
24-
docs/Makefile|
25-
docs/make.bat|
26-
(.*/|)requirements.*\.txt
27-
)$
23+
(?x)(
24+
^docs/Makefile$|
25+
^docs/make.bat$|
26+
(/|)requirements.*\.txt$
27+
)

.readthedocs.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ build:
99

1010
python:
1111
install:
12-
- requirements: requirements.txt
13-
- requirements: requirements-test.txt
14-
- requirements: docs/requirements.txt
1512
- requirements: docs/requirements-rtd.txt
1613

1714
sphinx:

docs/requirements-rtd.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.[test]
1+
.[dev]

docs/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/source/02-value-stats.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@
110110
" + [format_info_bfloat16, format_info_ocp_int8, format_info_ocp_e8m0]\n",
111111
")\n",
112112
"stats = [collect_stats(fi) for fi in formats_to_check]\n",
113-
"df = pandas.DataFrame(stats)\n",
114-
"\n"
113+
"df = pandas.DataFrame(stats)"
115114
]
116115
},
117116
{
@@ -388,7 +387,6 @@
388387
}
389388
],
390389
"source": [
391-
"\n",
392390
"# Special rendering for float values - if they don't render nicely in 10.5g,\n",
393391
"# use float_pow2str\n",
394392
"def render_float(v):\n",
@@ -430,7 +428,7 @@
430428
"name": "python",
431429
"nbconvert_exporter": "python",
432430
"pygments_lexer": "ipython3",
433-
"version": "3.10.14"
431+
"version": "3.12.3"
434432
}
435433
},
436434
"nbformat": 4,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dynamic = ["dependencies", "optional-dependencies"]
2828
[tool.setuptools.dynamic]
2929
# version = {attr = "gfloat.VERSION"} # Wow: https://github.com/pypa/setuptools/issues/1724
3030
dependencies = {file = ["requirements.txt"]}
31-
optional-dependencies = {test = {file = ["requirements-test.txt"]}}
31+
optional-dependencies = {dev = {file = ["requirements-dev.txt"]}}
3232

3333
[tool.black]
3434
line-length = 88

requirements-dev.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Requirements for development
2+
pytest
3+
pre-commit
4+
black
5+
mypy
6+
black[jupyter]
7+
8+
# Requirements for docs
9+
sphinx==7.1.2
10+
sphinx-rtd-theme==1.3.0rc1
11+
sphinx_paramlinks
12+
myst_nb
13+
14+
# Requirements for notebooks
15+
airium
16+
pandas

requirements-test.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)