sqlakit 0.22.0__tar.gz → 0.22.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. {sqlakit-0.22.0 → sqlakit-0.22.1}/PKG-INFO +1 -1
  2. {sqlakit-0.22.0 → sqlakit-0.22.1}/pyproject.toml +1 -1
  3. {sqlakit-0.22.0 → sqlakit-0.22.1}/pyproject.toml.orig +1 -1
  4. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_project.py +5 -3
  5. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_sqruff.py +1 -2
  6. {sqlakit-0.22.0 → sqlakit-0.22.1}/LICENSE +0 -0
  7. {sqlakit-0.22.0 → sqlakit-0.22.1}/README.md +0 -0
  8. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/__init__.py +0 -0
  9. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_base.py +0 -0
  10. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_cli.py +0 -0
  11. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_db.py +0 -0
  12. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_discovery.py +0 -0
  13. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_model.py +0 -0
  14. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_pycharm.py +0 -0
  15. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_query.py +0 -0
  16. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_recording.py +0 -0
  17. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_registry.py +0 -0
  18. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_routing.py +0 -0
  19. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_sql.py +0 -0
  20. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/_static.py +0 -0
  21. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/asyncio/__init__.py +0 -0
  22. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/asyncio/_db.py +0 -0
  23. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/asyncio/_registry.py +0 -0
  24. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/asyncio/orm.py +0 -0
  25. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/asyncio/sql.py +0 -0
  26. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/exceptions.py +0 -0
  27. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/orm.py +0 -0
  28. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/py.typed +0 -0
  29. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/pytest_plugin.py +0 -0
  30. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/sql.py +0 -0
  31. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/testing.py +0 -0
  32. {sqlakit-0.22.0 → sqlakit-0.22.1}/sqlakit/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlakit
3
- Version: 0.22.0
3
+ Version: 0.22.1
4
4
  Summary: A toolkit for SQLAlchemy applications.
5
5
  Keywords: sqlalchemy,database,orm,sql,asyncio
6
6
  Author: Anton Ruhlov
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sqlakit"
3
- version = "0.22.0"
3
+ version = "0.22.1"
4
4
  description = "A toolkit for SQLAlchemy applications."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sqlakit"
3
- version = "0.22.0"
3
+ version = "0.22.1"
4
4
  description = "A toolkit for SQLAlchemy applications."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -70,11 +70,13 @@ RESERVED = RESERVED_WORDS | POSTGRESQL_RESERVED_WORDS
70
70
  """Words a parameter cannot stand in for unquoted, on the databases linted most."""
71
71
  """Names SQL keeps for itself, which a linter cannot read a parameter as."""
72
72
 
73
- LINT_EXCLUDED = ("RF01", "AL05", "ST03")
73
+ LINT_EXCLUDED = ("RF01", "RF02", "RF03", "AL05", "ST03")
74
74
  """Rules a `tpl.` call trips without anything being wrong with the template.
75
75
 
76
- `RF01` reads `tpl.if_set` as a column of a table named `tpl`, and `AL05` and
77
- `ST03` miss an alias or a CTE used only inside a macro's argument.
76
+ `RF01` reads `tpl.if_set` as a column of a table named `tpl`. `RF02` and `RF03`,
77
+ outside `sqruff`'s default rules, read a table a macro takes, `tpl.paid(o)`, as
78
+ a column. `AL05` and `ST03` miss an alias or a CTE used only inside a macro's
79
+ argument.
78
80
  """
79
81
 
80
82
 
@@ -70,6 +70,7 @@ def settings(project: Project, pyproject: str, dialect: str | None) -> str:
70
70
  "[tool.sqruff.core]",
71
71
  *([f'dialect = "{chosen}"'] if chosen else []),
72
72
  'templater = "placeholder"',
73
+ 'rules = "all"',
73
74
  f'exclude_rules = "{",".join(LINT_EXCLUDED)}"',
74
75
  ]
75
76
  text = text.rstrip("\n") + "\n\n" + "\n".join(core) + "\n"
@@ -78,8 +79,6 @@ def settings(project: Project, pyproject: str, dialect: str | None) -> str:
78
79
  table = "\n".join(
79
80
  [
80
81
  "[tool.sqruff.templater.placeholder]",
81
- "# `sqlakit export sqruff` writes what the templates need, and keeps",
82
- "# what you add.",
83
82
  'param_style = "colon"',
84
83
  *(f"{name} = {_toml_value(value)}" for name, value in merged.items()),
85
84
  ]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes