Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull request for the issue 357 #241

Draft
wants to merge 738 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
738 commits
Select commit Hold shift + click to select a range
0e76640
only trigger unit tests if code has been modified (#577)
mehtamohit013 Jun 6, 2023
16cae09
Revert "only trigger unit tests if code has been modified (#577)" (#581)
edublancas Jun 6, 2023
6649100
fixes gif in sql formatting tutorial (#582)
tl3119 Jun 6, 2023
93b0309
support for NULLs in histogram (#568)
AnirudhVIyer Jun 7, 2023
b3b6592
Update CHANGELOG.md
edublancas Jun 7, 2023
652f99e
document integration test cloud vs local (#585)
tonykploomber Jun 7, 2023
590204d
add padding to table explorer (#589)
AnirudhVIyer Jun 7, 2023
464082e
Added test and example for -c/--creator feature (#567)
DaveOkpare Jun 7, 2023
f76b699
only trigger unit tests if code has been modified (#587)
mehtamohit013 Jun 7, 2023
e71204d
Interact ggplot tutorial (#455)
tonykploomber Jun 7, 2023
2e84753
Update ggplot-interact.md
edublancas Jun 7, 2023
cf5303d
connecting guide updates (#596)
tl3119 Jun 8, 2023
e882037
Snowflake guide (#591)
neelasha23 Jun 8, 2023
3877a53
validate %%sql arguments (#561)
tl3119 Jun 8, 2023
8ad1c73
Update CHANGELOG.md
edublancas Jun 8, 2023
3ba79ab
skipping tests if only docs have been modified (#598)
mehtamohit013 Jun 8, 2023
92c40f1
`--alias` fix (#600)
AnirudhVIyer Jun 14, 2023
a9c5683
Fix CI (#617)
mehtamohit013 Jun 14, 2023
b2d215d
Integration Testing Issue - Mariadb (#618)
tonykploomber Jun 15, 2023
a5790a6
pretty table styling fix (#620)
AnirudhVIyer Jun 16, 2023
123984b
sql release 0.7.9
edublancas Jun 19, 2023
13fadef
Bumps up sql to version 0.7.10dev
edublancas Jun 19, 2023
c09541f
Upload artifacts (#607)
neelasha23 Jun 19, 2023
2de8c3c
Added `%magic?` to docs (#625)
mehtamohit013 Jun 19, 2023
489ff00
check if changelog has been modified (#608)
mehtamohit013 Jun 19, 2023
b2abc02
updates codeowners
edublancas Jun 20, 2023
2d5e53f
Fixes CI (#626)
mehtamohit013 Jun 20, 2023
5b7120f
persist replace in doc (#630)
anupam-tiwari Jun 20, 2023
ca35cb2
631 ci fix (#633)
AnirudhVIyer Jun 20, 2023
4fc9361
integration tutorials cleanups (#634)
bbeat2782 Jun 21, 2023
d598b93
flexible spacing in the `var= <<` operator (#609)
tl3119 Jun 21, 2023
e5c341e
add `%sqlplot` image tests (#628)
mehtamohit013 Jun 21, 2023
4b938ed
Refactored `ResultSet` to lazy loading (#624)
yafimvo Jun 22, 2023
aa360f9
modified TableDescription formatting (#616)
AnirudhVIyer Jun 23, 2023
452674e
fix doc check CI (#668)
mehtamohit013 Jun 26, 2023
ece54c1
moving commands from `%sqlcmd` to separate files (#654)
AnirudhVIyer Jun 27, 2023
b202771
removing `with` when no dependency (#673)
bbeat2782 Jun 28, 2023
84c464e
Making ResultSet distinguishable (#655)
bbeat2782 Jun 28, 2023
9a8aeae
Move feat from %sqlrender to %sqlcmd snippets (#681)
bbeat2782 Jun 30, 2023
2456382
fix "too many open files" when running tests (#696)
edublancas Jul 3, 2023
1bde7d5
The failing CI was fixed due to a broken link (#708)
yafimvo Jul 5, 2023
60c8a32
Use display module when generating CTE (#683)
tl3119 Jul 5, 2023
f56dfab
snippets display improvement (#716)
bbeat2782 Jul 11, 2023
27bef63
Adding `--with` for CTE (#705)
neelasha23 Jul 11, 2023
00ff3fe
removes whitespace in changelog
edublancas Jul 12, 2023
be566e3
re-organizing sections (#722)
edublancas Jul 12, 2023
07403e4
adding DuckDB native connection to integrationt tests (#707)
mehtamohit013 Jul 13, 2023
6d60df9
improved parsing for the `<<` operator to better handle whitespace (#…
anupam-tiwari Jul 13, 2023
f467202
fix CI speed (#734)
edublancas Jul 16, 2023
c1f9cdf
Migrate user feedback to use display module (#735)
anupam-tiwari Jul 16, 2023
fcf1b33
fixes outdated docs (#738)
edublancas Jul 17, 2023
274b988
duckdb + polars performance improvements (#725)
edublancas Jul 17, 2023
436bdbd
updates version references to 0.8.0
edublancas Jul 17, 2023
6f05cb8
fix doc building (#742)
edublancas Jul 18, 2023
5d8ab8f
sql release 0.8.0
edublancas Jul 18, 2023
e527671
Bumps up sql to version 0.8.1dev
edublancas Jul 18, 2023
c433e53
fixed error that was turned into print statement (#746)
edublancas Jul 20, 2023
a2fcc39
ggplot hist draft fix (#711)
bbeat2782 Jul 24, 2023
0b7c03a
`connection.py` and `run.py` refactor (#755)
edublancas Jul 26, 2023
0233eb0
fixes ggplot histogram to match R's version (#754)
bbeat2782 Jul 26, 2023
5029a12
`ip.run_cell` now raises exceptions immediately (#757)
edublancas Jul 27, 2023
ff35846
Showing feedback when switching connections (#748)
anupam-tiwari Jul 27, 2023
7c1b5ea
loading sql magic configuration from `pyproject.toml` (#726)
bbeat2782 Jul 27, 2023
0bd09ac
fix CI (#763)
edublancas Jul 27, 2023
8959bed
adds `:variable` parameter substitution (#770)
edublancas Jul 30, 2023
85ae348
duckdb fixes + other improvements (#768)
edublancas Aug 1, 2023
a71ea40
renaming `named_parameters` option (#775)
edublancas Aug 1, 2023
f674f68
sql release 0.9.0
edublancas Aug 1, 2023
faf0995
Bumps up sql to version 0.9.1dev
edublancas Aug 1, 2023
7a8e6d0
`%sqlplot boxplot` now works with duckdb native connections (#762)
mehtamohit013 Aug 1, 2023
348939e
add first redshift integration tests (#777)
edublancas Aug 2, 2023
26621fb
add Redshift tutorial (#776)
edublancas Aug 3, 2023
0e7c836
improves DuckDB performance when converting to pandas (#780)
edublancas Aug 3, 2023
b6f07dc
Update CODEOWNERS
edublancas Aug 4, 2023
d913da7
result set clean up + fix mssql edge case (#781)
edublancas Aug 4, 2023
424ff48
adds histogram `breaks` (#767)
bbeat2782 Aug 5, 2023
79ac639
adds notes to redshift and snowflake tutorials on sqlalchemy version …
edublancas Aug 10, 2023
dc51229
adds bug-report.yml
edublancas Aug 10, 2023
67c59aa
edits to bug report template
edublancas Aug 10, 2023
5e130e7
update binder env
edublancas Aug 11, 2023
24eb648
Update environment.yml
edublancas Aug 11, 2023
bedcefe
Update environment.yml
edublancas Aug 11, 2023
18e8497
Update environment.yml
edublancas Aug 11, 2023
564ac4c
Fixes a bug when converting a CTE stored with `--save` into a `pandas…
edublancas Aug 11, 2023
c144bae
sql release 0.9.1
edublancas Aug 11, 2023
4a67324
Bumps up sql to version 0.9.2dev
edublancas Aug 11, 2023
7b082f4
update binder env
edublancas Aug 11, 2023
e046b60
change to trigger binder re-build
edublancas Aug 11, 2023
31fa726
do not expand ctes when the user supplies a cte (#795)
edublancas Aug 12, 2023
ab891e1
improves postgres compatibility + more granular feedback config (#798)
edublancas Aug 14, 2023
2ea31cb
add support for profile with dbapi (#785)
bbeat2782 Aug 15, 2023
6820c6c
add resultset footer to plain text representation (#802)
edublancas Aug 15, 2023
fb15ae7
fix doc (#805)
edublancas Aug 16, 2023
0e190b5
Histogram binwidth (#789)
bbeat2782 Aug 16, 2023
02ba21c
loading from `.ini` files API changes (#803)
edublancas Aug 17, 2023
1142060
improve error when calling sqlcmd (#804)
bbeat2782 Aug 18, 2023
0ee02e8
better feedback when switching connections (#796)
anupam-tiwari Aug 18, 2023
5210516
fix count statement when displaylimit=None (#815)
bbeat2782 Aug 18, 2023
8bcf3ad
fix error when using `%sqlplot` in snowflake (#697)
tonykploomber Aug 18, 2023
b814301
fixes error that was converted into print (#817)
edublancas Aug 19, 2023
798f3a3
changes dsn_filename default value (#818)
edublancas Aug 19, 2023
421bac7
sql release 0.10.0
edublancas Aug 19, 2023
998a287
Bumps up sql to version 0.10.1dev
edublancas Aug 19, 2023
a4748c2
auto-connect from default connection in `.ini` file (#819)
edublancas Aug 22, 2023
fab6768
add clickhouse integration tests (#810)
neelasha23 Aug 23, 2023
0363b83
add `%sqlcmd connect` (#783)
bbeat2782 Aug 23, 2023
82be1d2
show warning if default connection fails to initialize (#832)
edublancas Aug 25, 2023
e75d23b
error when passing a non-identifier to connect (#821)
bbeat2782 Aug 25, 2023
b33b141
make toml optional (#831)
bbeat2782 Aug 25, 2023
f6ef826
clearer error messages if a connection fails to initialize (#833)
edublancas Aug 25, 2023
4f6e58b
Fix argument parsing on windows (#822)
bbeat2782 Aug 27, 2023
b538512
fixes parsing when sql command has linebreaks (#835)
bbeat2782 Aug 28, 2023
0e9d363
re-organizing modules to prevent importing errors (#787)
neelasha23 Aug 28, 2023
0f88570
updates connector widget docs (#847)
edublancas Aug 29, 2023
c8d359c
fix test isolation (#837)
bbeat2782 Aug 29, 2023
54c51b6
consolidate store_utils into store (#851)
bbeat2782 Aug 29, 2023
265e352
fix error when passing argument with semicolon (#848)
bbeat2782 Aug 30, 2023
5676ccf
sql release 0.10.1
edublancas Aug 30, 2023
174e339
Bumps up sql to version 0.10.2dev
edublancas Aug 30, 2023
1a090c1
better feedback when loading `pyproject.toml` (#823)
neelasha23 Aug 31, 2023
4807943
add `--schema` to %sqlcmd commands (#852)
bbeat2782 Aug 31, 2023
e1d9eb1
improved arg validation in `%sqlplot` (#839)
neelasha23 Aug 31, 2023
ed9e83f
show feedback when starting a new connection (#834)
bbeat2782 Sep 1, 2023
f5c2137
fix result when summarize is passed to duckdb (#841)
bbeat2782 Sep 1, 2023
7550af6
Add chDB integration doc (#857)
nmreadelf Sep 5, 2023
253c5ac
clarify pyproject.toml and connections.ini (#858)
bbeat2782 Sep 6, 2023
af23a56
typo fix (#860)
fenrir-san Sep 6, 2023
4d3b0e6
adds cloud link (#862)
edublancas Sep 6, 2023
73e62b0
renamed con to conn for uniform naming (#863)
fenrir-san Sep 6, 2023
dd9010c
removed unused var (#865)
fenrir-san Sep 6, 2023
94166c6
improve display.py module (#861)
bbeat2782 Sep 7, 2023
8f6066d
Schema support for plot (#855)
bbeat2782 Sep 7, 2023
f5a1163
Added documentation for options that were missing from %sql Configura…
fenrir-san Sep 7, 2023
0a5c3ec
Rearranged code and documentation alphabetically for uniformity (#869)
fenrir-san Sep 7, 2023
18f845e
fix schema error in integration (#872)
bbeat2782 Sep 8, 2023
9f7e553
update outdated documentation (#871)
bbeat2782 Sep 11, 2023
6a33d35
Invalid input error (#873)
bbeat2782 Sep 11, 2023
4011175
Update environment.yml
edublancas Sep 12, 2023
202f043
deprecate legacy plot API (#870)
bryannho Sep 14, 2023
630e914
Fixed Clickhouse issue in CTE (#885)
fenrir-san Sep 18, 2023
6494461
Update environment.yml
edublancas Sep 19, 2023
cf824ca
DuckDB version fix (#883)
neelasha23 Sep 19, 2023
e690691
Update QuestDB Integration Guide (#889)
bryannho Sep 20, 2023
94ae116
Integration clean up (#891)
bryannho Sep 20, 2023
98ab7a6
bundling jupysql-plugin in jupysql (#893)
edublancas Sep 20, 2023
f03e27f
sql release 0.10.2
edublancas Sep 22, 2023
ac83318
Bumps up sql to version 0.10.3dev
edublancas Sep 22, 2023
b282122
DuckDB version pinned (#898)
neelasha23 Sep 27, 2023
0d1f1d9
dependent snippet deletion bug fix (#896)
neelasha23 Sep 27, 2023
cc9ca8c
removing comments before storing snippets (#894)
neelasha23 Oct 2, 2023
2ce74f4
Ipython version fix (#905)
neelasha23 Oct 3, 2023
433178c
fixes error when running `:NUMBER` in duckdb (#910)
bryannho Oct 10, 2023
c5f27df
allow configuration in the home directory (#899)
marshallwhiteorg Oct 10, 2023
973406b
Disabled CTE generation when snippets are used in non-SELECT queries …
fenrir-san Oct 10, 2023
3b0b1c0
Fix duckdb leading comments (#895)
marshallwhiteorg Oct 11, 2023
64a26a3
Fixed typo in docs/integration/clickhouse (#916)
fenrir-san Oct 16, 2023
a58e303
Clickhouse integration test fix for issue#811 (#915)
fenrir-san Oct 17, 2023
a1fd76c
902 Querying snippet gives wrong error message (#912)
bryannho Oct 17, 2023
d71584f
919 DuckDB Native uncaught CatalogException (#920)
bryannho Oct 23, 2023
5c2fc87
boxplot ax (#924)
neelasha23 Oct 25, 2023
d5b8821
ci
edublancas Oct 26, 2023
5f4af7c
Python api docs (#929)
neelasha23 Oct 31, 2023
42965ce
snowflake and redshift tests fix (#928)
neelasha23 Nov 2, 2023
7f06cae
917 incorrect conversion to dataframe for PIVOT statement and PIVOT s…
bryannho Nov 2, 2023
317ee8f
integration testing fix (#933)
neelasha23 Nov 5, 2023
c5d63be
sql release 0.10.3
edublancas Nov 6, 2023
084d15e
Bumps up sql to version 0.10.4dev
edublancas Nov 6, 2023
f6bcd18
907 semicolon last statement causes empty result (#939)
bryannho Nov 14, 2023
5d36832
Raising driver errors in resultset (#937)
neelasha23 Nov 14, 2023
35818ee
fix error when using `->` operator in line magic (#938)
bryannho Nov 16, 2023
499fa90
940 Confusing error message when table does not exist (#942)
bryannho Nov 17, 2023
afc5850
Added guards to check and raise errors when arguments are entered twi…
fenrir-san Nov 17, 2023
e5f5ceb
Upgrade to Oracle Database Free (#943)
gvenzl Nov 20, 2023
d748905
allow passing a schema when using `--persist` (#947)
neelasha23 Nov 22, 2023
5f0bba2
sql release 0.10.4
edublancas Nov 28, 2023
604bab2
Bumps up sql to version 0.10.5dev
edublancas Nov 28, 2023
27e07c8
[Fix 911] Search for config in ~/.jupysql/config if pyproject.toml do…
fenrir-san Nov 28, 2023
bb5dbe0
Duckdb version fix + Pandas 2.1 now compatible (#953)
bryannho Nov 30, 2023
e81b256
Sqlglot version pinned (#961)
neelasha23 Dec 11, 2023
d651500
update changelog
edublancas Dec 11, 2023
6d6d2a5
sql release 0.10.5
edublancas Dec 11, 2023
587efd3
Bumps up sql to version 0.10.6dev
edublancas Dec 11, 2023
2e2c073
updates share notebook doc
edublancas Dec 12, 2023
3096bc0
958 Unrecognized Argument on negative number queries (#964)
bryannho Dec 14, 2023
709404a
Update CHANGELOG.md
edublancas Dec 14, 2023
0e2001b
Fix sqlglot missing tokenizer test (#966)
neelasha23 Dec 21, 2023
9b7aa8c
sql release 0.10.6
edublancas Dec 21, 2023
4fda165
Bumps up sql to version 0.10.7dev
edublancas Dec 21, 2023
f4088a3
add support for spark (#968)
gilandose Dec 24, 2023
1bdbb98
sql release 0.10.7
edublancas Dec 24, 2023
56afd1a
Bumps up sql to version 0.10.8dev
edublancas Dec 24, 2023
5f961d1
minor update to spark tutorial
edublancas Dec 24, 2023
bdd6a9b
UsageError: unrecognized arguments: -> (Casing) (#974)
bryannho Jan 3, 2024
6962a9a
Update CHANGELOG.md
edublancas Jan 3, 2024
ba4eaa8
Removing binder (#977)
idomic Jan 3, 2024
821a9a7
Remove binder links (#978)
neelasha23 Jan 4, 2024
062d5e9
Document Snowflake Warehouse Fix (#981)
bryannho Jan 17, 2024
aaf4021
removed snowflake and redshift from integration testing (#982)
neelasha23 Jan 25, 2024
ceaa8b8
Update README.md
edublancas Jan 25, 2024
e36a753
allow variable expansion `{{variable}}` in magic arguments (#941)
neelasha23 Jan 25, 2024
4fa1f2c
sql release 0.10.8
edublancas Jan 25, 2024
0c5f00a
Bumps up sql to version 0.10.9dev
edublancas Jan 25, 2024
5252173
Refactor close-matching when reading toml config (#976)
maciejb Jan 28, 2024
6c93adc
update changelog
edublancas Jan 28, 2024
5194de7
lint fix
edublancas Jan 28, 2024
dbe2681
allows completely disabling named parameters (#980)
bryannho Jan 29, 2024
1d6bc76
fix changelog
edublancas Jan 29, 2024
057f4e7
banner changed (#988)
neelasha23 Jan 29, 2024
11305bd
fix lint
edublancas Jan 29, 2024
12e25db
sql release 0.10.9
edublancas Feb 1, 2024
f2a0a3f
Bumps up sql to version 0.10.10dev
edublancas Feb 1, 2024
a4cb394
removes problematic link
edublancas Feb 2, 2024
a417542
updates dependencies (#990)
edublancas Feb 8, 2024
58769a6
sql release 0.10.10
edublancas Feb 8, 2024
a739564
Bumps up sql to version 0.10.11dev
edublancas Feb 8, 2024
f04ca41
ci fixes (#992)
neelasha23 Feb 27, 2024
5ba5c3a
adds --only-404 to check-links workflow
edublancas Feb 28, 2024
47d8279
disable clickhouse integration tests (#995)
neelasha23 Feb 29, 2024
03e00d4
fixes broken link in docs
edublancas Mar 4, 2024
c758974
Fix ci (#1000)
neelasha23 Mar 26, 2024
4f3c204
Fix buggy __init__ method (#999)
rschroll Mar 26, 2024
0433444
Update pull_request_template.md
edublancas Mar 27, 2024
f4302dc
test ci (#1017)
neelasha23 Jun 26, 2024
414bf1a
revert changelog (#1018)
neelasha23 Jun 27, 2024
bdc2e60
Fix error when connections.ini contains a `query` value as dictionary…
wimvanleuven Jul 3, 2024
9a2df69
sql release 0.10.11
edublancas Jul 3, 2024
5118b87
Bumps up sql to version 0.10.12dev
edublancas Jul 3, 2024
d13e982
Remove sqlalchemy upper bound (#1020)
mark-thm Jul 8, 2024
39aa080
sql release 0.10.12
edublancas Jul 12, 2024
192ac05
Bumps up sql to version 0.10.13dev
edublancas Jul 12, 2024
acade03
removes ploomber-extension (#1028)
edublancas Sep 12, 2024
8cd6aca
sql release 0.10.13
edublancas Sep 12, 2024
92bf8bd
Bumps up sql to version 0.10.14dev
edublancas Sep 12, 2024
f2680f6
remove telemetry (#1034)
edublancas Sep 18, 2024
1ab4f1c
sql release 0.10.14
edublancas Sep 18, 2024
1274d09
Bumps up sql to version 0.10.15dev
edublancas Sep 18, 2024
3c32cd3
compatibility with prettytable 3.12.0 (#1039)
edublancas Nov 5, 2024
54cdebf
sql release 0.10.15
edublancas Nov 5, 2024
c5c4621
Bumps up sql to version 0.10.16dev
edublancas Nov 5, 2024
a67bae0
duckdb frame scanning fix (#1040)
edublancas Nov 7, 2024
29f467f
sql release 0.10.16
edublancas Nov 7, 2024
f4f1ea8
Bumps up sql to version 0.10.17dev
edublancas Nov 7, 2024
6b21303
updates top banner
edublancas Nov 8, 2024
17cbe72
adds onboarding param
edublancas Nov 8, 2024
2a28c6d
Update README.md
edublancas Nov 21, 2024
9cd72c9
Update ci.yaml
edublancas Dec 3, 2024
e073f7b
1011 Disable full stack trace when using spark connect (#1024)
b1ackout Jan 8, 2025
2b7e5c2
fix changelog
edublancas Jan 8, 2025
cab31ea
sql release 0.10.17
edublancas Jan 8, 2025
6be0d4b
Bumps up sql to version 0.10.18dev
edublancas Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/devcontainers/anaconda:0-3

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
23 changes: 23 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// For format details, see https://aka.ms/devcontainer.json.
{
"name": "Jupyter",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-toolsai.jupyter",
"GitHub.codespaces"
]
}
},
"postCreateCommand": "./.devcontainer/postCreate.sh"
}
13 changes: 13 additions & 0 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -x

conda init bash

# Perform install instructions from
# https://ploomber-contributing.readthedocs.io/en/latest/contributing/setup.html
conda create --name ploomber-base python=3.10 --yes
conda activate ploomber-base
pip install pkgmt
pkgmt setup --doc

# After the devcontainer comes up, you can just enable the jupysql conda env:
# conda activate jupysql
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* @edublancas

/.github/ @edublancas

/doc/ @edublancas @neelasha23
63 changes: 63 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Bug report
description: Something not working? Create a bug report.
body:
- type: textarea
attributes:
label: What happens?
description: A short, clear and concise description of what the bug is.
validations:
required: true

- type: textarea
attributes:
label: To Reproduce
description: Steps to reproduce the behavior. Providing a minimal, reproducible example (you can attach a notebook) is the best way to get your issue resolved quickly.
validations:
required: true

- type: markdown
attributes:
value: "## Environment"

- type: input
attributes:
label: "OS:"
placeholder: Linux
description: Operating system (e.g. Linux, Windows, macOS)
validations:
required: true

- type: input
attributes:
label: "JupySQL Version:"
placeholder: e.g. 0.9.0
validations:
required: true

- type: markdown
attributes:
value: "To get the version. run: `import sql; print(sql.__version__)`"

- type: markdown
attributes:
value: "## Identity Disclosure"

- type: input
attributes:
label: "Full Name:"
placeholder: e.g. John Doe
validations:
required: true

- type: input
attributes:
label: "Affiliation:"
placeholder: e.g. Big Corp
validations:
required: true

- type: markdown
attributes:
value: |
If the above is not given and is not obvious from your GitHub profile page, we might close your issue without further review. Please refer to the [reasoning behind this rule](https://berthub.eu/articles/posts/anonymous-help/) if you have questions.

13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Describe your changes

## Issue number

Closes #X

## Checklist before requesting a review

- [ ] Performed a self-review of my code
- [ ] Formatted my code with [`pkgmt format`](https://ploomber-contributing.readthedocs.io/en/latest/contributing/submitting-pr.html#linting-formatting)
- [ ] Added [tests](https://ploomber-contributing.readthedocs.io/en/latest/contributing/submitting-pr.html#testing) (when necessary).
- [ ] Added [docstring](https://ploomber-contributing.readthedocs.io/en/latest/contributing/submitting-pr.html#documenting-changes-and-new-features) documentation and update the [changelog](https://ploomber-contributing.readthedocs.io/en/latest/contributing/submitting-pr.html#changelog) (when needed)

78 changes: 78 additions & 0 deletions .github/workflows/chatops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: bot-format

on:
issue_comment:
types: [created]

jobs:
pkgmt-format:
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '/format')
runs-on: ubuntu-latest

steps:
- uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch

- name: Set latest commit status as pending
uses: myrotvorets/set-commit-status-action@master
with:
sha: ${{ steps.comment-branch.outputs.head_sha }}
token: ${{ secrets.GITHUB_TOKEN }}
status: pending

# there's an alternative way to check out:
# https://github.com/actions/checkout/issues/331#issuecomment-925405415
- name: Checkout PR branch
uses: actions/checkout@v3
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: format
run: |
python -m pip install --upgrade pip pkgmt

# https://github.com/actions/checkout/discussions/479#discussioncomment-625461
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'

pkgmt format

if [[ -z $(git status -s) ]]
then
echo "No changes to commit..."
else
echo "Committing changes..."
git add --all
git commit -m 'formattting'
git push
fi

- name: Set latest commit status as ${{ job.status }}
uses: myrotvorets/set-commit-status-action@master
if: always()
with:
sha: ${{ steps.comment-branch.outputs.head_sha }}
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}

- name: Add comment to PR
uses: actions/github-script@v6
if: always()
with:
script: |
const name = '${{ github.workflow }}';
const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
const success = '${{ job.status }}' === 'success';
const body = `${name}: ${success ? 'succeeded ✅' : 'failed ❌'}\n${url}`;

await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: body
})
54 changes: 54 additions & 0 deletions .github/workflows/ci-integration-db.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# CI - DB Integration - Local is designed to run integration testing against to databases hosted by docker containers
# Target database: PostgreSQL, MySQL, MariaDB, SQLite, DuckDB, MSSQL, Oracle Database
# Sqlalchemy version: 2+
name: CI - DB Integration - Local
on:
workflow_call:

jobs:
database-integration-test:
strategy:
matrix:
python-version: ['3.11']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

env:
PLOOMBER_VERSION_CHECK_DISABLED: true
PYTHON_VERSION: ${{ matrix.python-version }}

steps:

- name: Checkout
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
# Install MSSQL ODBC 18
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo curl -o /etc/apt/sources.list.d/mssql-release.list https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools18
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
source ~/.bashrc

python -m pip install --upgrade pip
python -m pip install --upgrade nox
nox --session test_integration --install-only

- name: Integration Test
run: |
nox --session test_integration --no-install --reuse-existing-virtualenvs

- name: Upload failed images artifacts
uses: actions/upload-artifact@v3
if: failure()
with:
name: failed-image-artifacts-integration ${{ matrix.os }} ${{ matrix.python-version }}
path: result_images/
Loading