Breaking
* refactor!: remove deprecated cli module and update dependencies (162)
Remove the cli module, which has been deprecated since pyprql 0.5.10
(released on PyPI on 2022-12-12) (93), and update dependencies.
This PR also includes a configuration change for python-semantic-release
(`major_on_zero = false`), making the release after this disruptive
change `0.7.0` instead of `1.0.0`. ([`89e1199`](https://github.com/PRQL/pyprql/commit/89e11996a9f46ea6e16b07c8cba253f2d4e8341b))
Build
* build: Have ReadTheDocs pass (153) ([`e66b40c`](https://github.com/PRQL/pyprql/commit/e66b40c2d02636ba7facdccc4cc3ec0546eb8322))
* build: Move some dependencies to dev-dependencies (152) ([`9b6f2f5`](https://github.com/PRQL/pyprql/commit/9b6f2f58e9fd439495faca6523d2fc7a027e9058))
Chore
* chore: depends on prql-python 0.7 (163) ([`d6c82b5`](https://github.com/PRQL/pyprql/commit/d6c82b57e89d818f2e896b11162b95f5ec7186ad))
* chore: remove outdated PRQL example files (157) ([`7beeb01`](https://github.com/PRQL/pyprql/commit/7beeb01758ae97a066101279fabc944d761512b8))
Documentation
* docs: Add `compile` function (154)
And explain how this differs from `prql-python`. Closes 151. ([`917062e`](https://github.com/PRQL/pyprql/commit/917062e0850a96c6d7e9623abfb3f0a9c9397263))
Feature
* feat(magic): support PRQL query in line magic (160)
Supports execution of PRQL queries in line magic, like that.
python
results = %prql from p = `products.csv` | aggregate [min unitsInStock, max unitsInStock]
This PR also changes the function that performs argument parsing from
`sql.parse.magic_args` to
`IPython.core.magic_arguments.parse_argstring`.
In SQL we need to use `sql.parse.magic_args` because the comment
character is `--` in SQL. In PRQL, we do not need to consider `--`.
`IPython.core.magic_arguments.parse_argstring` is more strict and will
raise an error for unsupported arguments such as `--foo`.
default
In [1]: %load_ext pyprql.magic
In [2]: %prql --foo from a
UsageError: unrecognized arguments: --foo
([`0b0f8d8`](https://github.com/PRQL/pyprql/commit/0b0f8d87f780930d6dd8852cdcbb52353baed2da))
* feat(magic): add `dryrun` config option to only print SQL output (159)
`%config PrqlMagic.dryrun=True` allows to just printing without
executing output SQL.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]users.noreply.github.com> ([`b5a602f`](https://github.com/PRQL/pyprql/commit/b5a602f2873c43666b6fed0d4423270c27e0f484))
Fix
* fix: fix python versions (165)
IPython is not supporting python 3.7 ([`fb70408`](https://github.com/PRQL/pyprql/commit/fb70408e183f4d94c103200362702f1274dd4c92))
* fix: fix GitHub Actions workflows and more python versions support (164)
I noticed that the checks by CI were not actually using the Python
version of the matrix, so I&39;m fixing that.
I&39;m also fixing other errors discovered using actionlint and remove
nonworking codecov step. ([`0901392`](https://github.com/PRQL/pyprql/commit/0901392fe4f698acb3db6d9b9fc9b039782643ae))
* fix(magic): support `.prql` file with the `--file` arg option (158) ([`98dfcab`](https://github.com/PRQL/pyprql/commit/98dfcabecef0db540c11e59fce8c2c7c667176ba))
Unknown
* [pre-commit.ci] pre-commit autoupdate (161)
<!--pre-commit.ci start-->
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.257 →
v0.0.259](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.257...v0.0.259)
<!--pre-commit.ci end-->
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]users.noreply.github.com> ([`f9b48de`](https://github.com/PRQL/pyprql/commit/f9b48de9ac7d927368a060f431158f16fe8fc636))
* [pre-commit.ci] pre-commit autoupdate (155)
<!--pre-commit.ci start-->
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.254 →
v0.0.257](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.254...v0.0.257)
<!--pre-commit.ci end-->
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]users.noreply.github.com> ([`52fcd23`](https://github.com/PRQL/pyprql/commit/52fcd2347c5fe2db69d9035d4bddb2c56e164d64))
* [pre-commit.ci] pre-commit autoupdate (149)
<!--pre-commit.ci start-->
updates:
- [github.com/pre-commit/mirrors-mypy: v1.0.1 →
v1.1.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.1...v1.1.1)
<!--pre-commit.ci end-->
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]users.noreply.github.com> ([`8f5cb50`](https://github.com/PRQL/pyprql/commit/8f5cb50554fac37685ba828c5e0159fc47d510cf))