8000 Update lint tools and GitHub actions · PyGreSQL/PyGreSQL@8d5b39b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d5b39b

Browse files
committed
Update lint tools and GitHub actions
1 parent a8507e0 commit 8d5b39b

File tree

5 files changed

+20
-19
lines changed

5 files changed

+20
-19
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ on:
66
- main
77

88
jobs:
9-
build:
9+
docs:
10+
name: Build documentation
1011
runs-on: ubuntu-22.04
1112

1213
steps:
13-
- name: CHeck out repository
14+
- name: Check out repository
1415
uses: actions/checkout@v4
15-
- name: Set up Python 3.11
16-
uses: actions/setup-python@v4
16+
- name: Set up Python 3.12
17+
uses: actions/setup-python@v5
1718
with:
18-
python-version: 3.11
19+
python-version: 3.12
1920
- name: Install dependencies
2021
run: |
2122
sudo apt install libpq-dev

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414

1515
steps:
1616
- name: Check out repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
- name: Install tox
1919
run: pip install tox
2020
- name: Setup Python
2121
uses: actions/setup-python@v4
2222
with:
23-
python-version: 3.11
23+
python-version: 3.12
2424
- name: Run quality checks
2525
run: tox -e ruff,mypy,cformat,docs
2626
timeout-minutes: 5

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Install tox
5858
run: pip install tox
5959
- name: Setup Python
60-
uses: actions/setup-python@v4
60+
uses: actions/setup-python@v5
6161
with:
6262
python-version: ${{ matrix.python }}
6363
- name: Run tests

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ignore = ["D203", "D213"]
7878
"tests/*.py" = ["D100", "D101", "D102", "D103", "D105", "D107", "S"]
7979

8080
[tool.mypy]
81-
python_version = "3.11"
81+
python_version = "3.12"
8282
check_untyped_defs = true
8383
no_implicit_optional = true
8484
strict_optional = true
@@ -101,5 +101,5 @@ pg = ["pg.typed"]
101101
pgdb = ["pg.typed"]
102102

103103
[build-system]
104-
requires = ["setuptools>=68", "wheel>=0.41"]
104+
requires = ["setuptools>=68", "wheel>=0.42"]
105105
build-backend = "setuptools.build_meta"

tox.ini

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,42 @@
44
envlist = py3{7,8,9,10,11,12},ruff,mypy,cformat,docs
55

66
[testenv:ruff]
7-
basepython = python3.11
8-
deps = ruff>=0.3.0
7+
basepython = python3.12
8+
deps = ruff>=0.3.7
99
commands =
1010
ruff check setup.py pg pgdb tests
1111

1212
[testenv:mypy]
13-
basepython = python3.11
14-
deps = mypy>=1.8.0
13+
basepython = python3.12
14+
deps = mypy>=1.9.0
1515
commands =
1616
mypy pg pgdb tests
1717

1818
[testenv:cformat]
19-
basepython = python3.11
19+
basepython = python3.12
2020
allowlist_externals =
2121
sh
2222
commands =
2323
sh -c "! (clang-format --style=file -n ext/*.c 2>&1 | tee /dev/tty | grep format-violations)"
2424

2525
[testenv:docs]
26-
basepython = python3.11
26+
basepython = python3.12
2727
deps =
2828
sphinx>=7,<8
2929
commands =
3030
sphinx-build -b html -nEW docs docs/_build/html
3131

3232
[testenv:build]
33-
basepython = python3.11
33+
basepython = python3.12
3434
deps =
3535
setuptools>=68
36-
wheel>=0.41,<1
36+
wheel>=0.42,<1
3737
build>=1,<2
3838
commands =
3939
python -m build -s -n -C strict -C memory-size
4040

4141
[testenv:coverage]
42-
basepython = python3.11
42+
basepython = python3.12
4343
deps =
4444
coverage>=7,<8
4545
commands =

0 commit comments

Comments
 (0)
0