File: Justfile

package info (click to toggle)
sqlite-utils 3.38-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,544 kB
  • sloc: python: 14,245; makefile: 33; ansic: 26; javascript: 21; sh: 5
file content (30 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (2)
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
# Run tests and linters
@default: test lint

# Setup project
@init:
  pipenv run pip install -e '.[test,docs,mypy,flake8]'

# Run pytest with supplied options
@test *options:
  pipenv run pytest {{options}}

# Run linters: black, flake8, mypy, cog
@lint:
  pipenv run black . --check
  pipenv run flake8
  pipenv run mypy sqlite_utils tests
  pipenv run cog --check README.md docs/*.rst
  pipenv run codespell docs/*.rst --ignore-words docs/codespell-ignore-words.txt

# Rebuild docs with cog
@cog:
  pipenv run cog -r README.md docs/*.rst

# Serve live docs on localhost:8000
@docs: cog
  cd docs && pipenv run make livehtml

# Apply Black
@black:
  pipenv run black .