File: CONTRIBUTING.md

package info (click to toggle)
python-aiosqlite 0.21.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: python: 963; makefile: 46; sh: 5
file content (53 lines) | stat: -rw-r--r-- 1,195 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributing to aiosqlite

## Preparation

You'll need to have at least Python 3.9 available for testing.

You can do this with [pyenv][]:

    $ pyenv install <version>
    $ pyenv local <version>
    
    
## Setup

Once cloned, create a clean virtual environment and
install the appropriate tools and dependencies:

    $ cd <path/to/aiosqlite>
    $ make venv
    $ source .venv/bin/activate


## Formatting

aiosqlite uses *[ufmt][]* for formatting code and imports.
If your editor does not already support this workflow,
you can manually format files:

    $ make format


## Testing

Once you've made changes, you should run unit tests,
validate your type annotations, and ensure your code
meets the appropriate style and linting rules:

    $ make test lint
    
    
## Submitting

Before submitting a pull request, please ensure
that you have done the following:

* Documented changes or features in README.md
* Added appropriate license headers to new files
* Written or modified tests for new functionality
* Formatted code following project standards
* Validated code and formatting with `make test lint`

[pyenv]: https://github.com/pyenv/pyenv
[µfmt]: https://ufmt.omnilib.dev