Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.48 KB

CONTRIBUTING.md

File metadata and controls

60 lines (40 loc) · 1.48 KB

Contributing

Getting started

The project uses poetry for managing dependencies.

First, install the project's dependencies:

poetry install

Once installed, you can execute the unit tests with pytest:

poetry run pytest

We use python type annotations. Type-check the code with mypy:

poetry run mypy synql

Format the code with black:

poetry run black .

You can also lint the project thanks to pylint:

poetry run pylint synql

Dependencies

The project depends on pysqlite3-binary in order to use the same version of sqlite3 in local and in CI. We had to define a stub for pysqlite3 to get types. Because it shares the same API as sqlite3, we just had to export the stub of sqlite3.

sqlschm allow parsing SQLite schemas.

Commit messages

The project adheres to the conventional commit specification.

The following commit prefixes are supported:

  • feat:, a new feature
  • fix:, a bugfix
  • docs:, a documentation update
  • test:, a test update
  • chore:, project housekeeping
  • perf:, project performance
  • refactor:, refactor of the code without change in functionality

See the git log for well-formed messages.