Skip to content

Commit f4b0e1d

Browse files
committed
use uv for dependency management
1 parent cd3eba9 commit f4b0e1d

File tree

11 files changed

+693
-22
lines changed

11 files changed

+693
-22
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
with:
1313
python-version: "3.12"
1414
- name: Install dependencies
15-
run: python -m pip install -r requirements.txt
15+
run: python -m pip install .
1616
- name: Test
1717
run: pytest

.github/workflows/check_links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
with:
1313
python-version: "3.12"
1414
- name: Install dependencies
15-
run: python -m pip install -r requirements.txt
15+
run: python -m pip install .
1616
- name: Check broken links
1717
run: sphinx-build -nW -b linkcheck . _build

.github/workflows/generate_grants.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
python-version: "3.12"
1717
- name: Install dependencies
18-
run: python -m pip install -r requirements.txt
18+
run: python -m pip install .
1919
- name: Generate the list of grants
2020
run: python _scripts/generate_grants.py > ./operations/grants.rst
2121
env:

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Když toho upravujete víc, nebo máte zálusk na nějaké složitější kejkle
1717

1818
#. Stáhněte projekt: ``git clone https://github.com/pyvec/docs.pyvec.org.git``
1919
#. Vytvořte si a aktivujte virtuální prostředí
20-
#. Nainstalujte do prostředí závislosti: ``python -m pip install -r requirements.txt``
20+
#. Nainstalujte do prostředí závislosti: ``python -m pip install .``
2121

2222
Běžná práce
2323
-----------

_extensions/slack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import functools
99
from operator import itemgetter
1010
from pathlib import Path
11-
from docutils import nodes
1211

1312
import strictyaml as yaml
13+
from docutils import nodes
1414

1515

1616
BOARD_HISTORY_SCHEMA = yaml.Seq(

_scripts/generate_grants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import os
22
import re
33
from datetime import date
4-
from pathlib import Path
54
from operator import itemgetter
5+
from pathlib import Path
66

77
import requests
8-
from jinja2 import Template
98
import strictyaml as yaml
9+
from jinja2 import Template
1010

1111

1212
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")

_scripts/test_generate_grants.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from datetime import date, datetime
22

33
import pytest
4-
5-
from generate_grants import to_date, remove_comments, get_board_member_name, get_votes
4+
from generate_grants import get_board_member_name, get_votes, remove_comments, to_date
65

76

87
@pytest.fixture

pyproject.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[project]
2+
name = "pyvec-docs"
3+
version = "0.0.0"
4+
readme = "README.rst"
5+
requires-python = "==3.12"
6+
dependencies = [
7+
"sphinx==7.4.7",
8+
"sphinxemoji==0.3.1",
9+
"sphinx-rtd-theme==2.0.0",
10+
"sphinx-autobuild==2024.4.16",
11+
"requests==2.32.3",
12+
"jinja2==3.1.4",
13+
"strictyaml==1.7.3",
14+
"pytest==8.3.2",
15+
"myst-parser==4.0.0",
16+
"pytest-ruff==0.4.1",
17+
]
18+
19+
[tool.pytest.ini_options]
20+
testpaths = "_*"
21+
addopts = "--ff --ruff --ruff-format"
22+
norecursedirs = "_build _static _templates"
23+
24+
[tool.ruff]
25+
target-version = "py312"
26+
# extend-exclude = ["*_legacy"]
27+
28+
[tool.ruff.lint]
29+
extend-select = ["I"]
30+
31+
[tool.ruff.lint.isort]
32+
combine-as-imports = true
33+
lines-after-imports = 2

pytest.ini

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

requirements.txt

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

0 commit comments

Comments
 (0)