Skip to content

Commit dcc0397

Browse files
authored
Merge branch 'main' into main
2 parents 21c6bfb + 9fc68a0 commit dcc0397

36 files changed

Lines changed: 539 additions & 232 deletions

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
## Description
22
<!--- Describe your changes in detail. -->
33

4-
5-
64
## Checklist
75
<!--- We appreciate your help and want to give you credit. Please take a moment to put an `x` in the boxes below as you complete them. -->
86
- [ ] I've added this contribution to the `changelog.rst`.
97
- [ ] I've added my name to the `AUTHORS` file (or it's already there).
108
<!-- We would appreciate if you comply with our code style guidelines. -->
119
- [ ] I installed pre-commit hooks (`pip install pre-commit && pre-commit install`).
10+
- [ ] I verified that my changes work as expected (this may include manually testing them in your local environment, or in other available environments). Cross this out if not relevant (for example, if you're making a documentation change).
1211
- [x] Please squash merge this pull request (uncheck if you'd like us to merge as multiple commits)

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
17+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1818

1919
services:
2020
postgres:

.github/workflows/codex-review.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Codex Review
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, labeled, reopened, ready_for_review]
6+
paths-ignore:
7+
- '**.md'
8+
- '**.rst'
9+
- 'LICENSE.txt'
10+
- 'doc/**/*.txt'
11+
- '**/AUTHORS'
12+
- '**/SPONSORS'
13+
- '**/TIPS'
14+
- 'pgcli-completion.bash'
15+
- 'sanity_checks.txt'
16+
- 'post-install'
17+
- 'post-remove'
18+
- 'screenshots/**'
19+
20+
jobs:
21+
codex-review:
22+
if: github.event.pull_request.draft == false || (github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 'codex'))
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
outputs:
27+
final_message: ${{ steps.run_codex.outputs.final-message }}
28+
29+
steps:
30+
- name: Check out PR merge commit
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
32+
with:
33+
ref: refs/pull/${{ github.event.pull_request.number }}/merge
34+
35+
- name: Fetch base and head refs
36+
run: |
37+
git fetch --no-tags origin \
38+
${{ github.event.pull_request.base.ref }} \
39+
+refs/pull/${{ github.event.pull_request.number }}/head
40+
41+
- name: Run Codex review
42+
id: run_codex
43+
uses: openai/codex-action@v1
44+
env:
45+
# Use env variables to handle untrusted metadata safely
46+
PR_TITLE: ${{ github.event.pull_request.title }}
47+
PR_BODY: ${{ github.event.pull_request.body }}
48+
with:
49+
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
50+
prompt: |
51+
You are reviewing PR #${{ github.event.pull_request.number }} for ${{ github.repository }}.
52+
53+
Only review changes introduced by this PR:
54+
git log --oneline ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }}
55+
56+
Focus on:
57+
- correctness bugs and regressions
58+
- security concerns
59+
- missing tests or edge cases
60+
61+
Keep feedback concise and actionable.
62+
63+
Pull request title and body:
64+
----
65+
$PR_TITLE
66+
$PR_BODY
67+
68+
post-feedback:
69+
runs-on: ubuntu-latest
70+
needs: codex-review
71+
if: needs.codex-review.outputs.final_message != ''
72+
permissions:
73+
issues: write
74+
pull-requests: write
75+
76+
steps:
77+
- name: Post Codex review as PR comment
78+
uses: actions/github-script@v8
79+
env:
80+
CODEX_FINAL_MESSAGE: |
81+
${{ format('## Codex Review
82+
{0}', needs.codex-review.outputs.final_message) }}
83+
with:
84+
github-token: ${{ github.token }}
85+
script: |
86+
await github.rest.issues.createComment({
87+
owner: context.repo.owner,
88+
repo: context.repo.repo,
89+
issue_number: context.payload.pull_request.number,
90+
body: process.env.CODEX_FINAL_MESSAGE,
91+
});

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
16+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1717

1818
services:
1919
postgres:
@@ -68,7 +68,7 @@ jobs:
6868
python-version: '3.13'
6969

7070
- name: Install dependencies
71-
run: uv sync --all-extras -p 3.13
71+
run: uv sync --all-extras -p 3.14
7272

7373
- name: Build
7474
run: uv build
@@ -94,4 +94,4 @@ jobs:
9494
name: python-packages
9595
path: dist/
9696
- name: Publish to PyPI
97-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
97+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: v0.11.7
4+
rev: v0.14.10
55
hooks:
66
# Run the linter.
77
- id: ruff

AUTHORS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ Contributors:
145145
* fbdb
146146
* Charbel Jacquin (charbeljc)
147147
* Jeronimo Garcia (bechampion)
148+
* Devadathan M B (devadathanmb)
149+
* Charalampos Stratakis
150+
* Laszlo Bimba (bimlas)
151+
* Anjanna
152+
* Shayan Golshani (shgol)
153+
* Tommi Kyntölä (kynde)
148154

149155
Creator:
150156
--------

CONTRIBUTING.rst

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -101,43 +101,6 @@ Within the project, create a file: .vscode\\launch.json like below.
101101
]
102102
}
103103

104-
Building RPM and DEB packages
105-
-----------------------------
106-
107-
You will need Vagrant 1.7.2 or higher. In the project root there is a
108-
Vagrantfile that is setup to do multi-vm provisioning. If you're setting things
109-
up for the first time, then do:
110-
111-
::
112-
113-
$ version=x.y.z vagrant up debian
114-
$ version=x.y.z vagrant up centos
115-
116-
If you already have those VMs setup and you're merely creating a new version of
117-
DEB or RPM package, then you can do:
118-
119-
::
120-
121-
$ version=x.y.z vagrant provision
122-
123-
That will create a .deb file and a .rpm file.
124-
125-
The deb package can be installed as follows:
126-
127-
::
128-
129-
$ sudo dpkg -i pgcli*.deb # if dependencies are available.
130-
131-
or
132-
133-
$ sudo apt-get install -f pgcli*.deb # if dependencies are not available.
134-
135-
136-
The rpm package can be installed as follows:
137-
138-
::
139-
140-
$ sudo yum install pgcli*.rpm
141104

142105
Running the integration tests
143106
-----------------------------

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8
1+
FROM python:3.14
22

33
COPY . /app
44
RUN cd /app && pip install -e .

README.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ A REPL for Postgres
2828

2929
This is a postgres client that does auto-completion and syntax highlighting.
3030

31-
Home Page: http://pgcli.com
31+
Home Page: https://pgcli.com
3232

33-
MySQL Equivalent: http://mycli.net
33+
MySQL Equivalent: https://mycli.net
3434

3535
.. image:: screenshots/pgcli.gif
3636
.. image:: screenshots/image01.png
@@ -159,8 +159,8 @@ https://github.com/dbcli/pgcli/blob/main/CONTRIBUTING.rst
159159

160160
Please feel free to reach out to us if you need help.
161161

162-
* Amjith, pgcli author: amjith.r@gmail.com, Twitter: `@amjithr <http://twitter.com/amjithr>`_
163-
* Irina, pgcli maintainer: i.chernyavska@gmail.com, Twitter: `@irinatruong <http://twitter.com/irinatruong>`_
162+
* Amjith, pgcli author: amjith.r@gmail.com, Twitter: `@amjithr <https://twitter.com/amjithr>`_
163+
* Irina, pgcli maintainer: i.chernyavska@gmail.com, Twitter: `@irinatruong <https://twitter.com/irinatruong>`_
164164

165165
Detailed Installation Instructions:
166166
-----------------------------------
@@ -341,17 +341,18 @@ Pgcli dropped support for:
341341

342342
* Python<3.8 as of 4.0.0.
343343
* Python<3.9 as of 4.2.0.
344+
* Python<10 as of 4.5.0.
344345

345346
Thanks:
346347
-------
347348

348349
A special thanks to `Jonathan Slenders <https://twitter.com/jonathan_s>`_ for
349-
creating `Python Prompt Toolkit <http://github.com/jonathanslenders/python-prompt-toolkit>`_,
350+
creating `Python Prompt Toolkit <https://github.com/jonathanslenders/python-prompt-toolkit>`_,
350351
which is quite literally the backbone library, that made this app possible.
351352
Jonathan has also provided valuable feedback and support during the development
352353
of this app.
353354

354-
`Click <http://click.pocoo.org/>`_ is used for command line option parsing
355+
`Click <https://click.pocoo.org/>`_ is used for command line option parsing
355356
and printing error messages.
356357

357358
Thanks to `psycopg <https://www.psycopg.org/>`_ for providing a rock solid

Vagrantfile

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

0 commit comments

Comments
 (0)