Skip to content

Commit fdfd552

Browse files
committed
Move to using pyproject.toml
1 parent 54f9650 commit fdfd552

10 files changed

+95
-353
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 23.11.0
4-
hooks:
5-
- id: black
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.6.4
5+
hooks:
6+
# Run the linter.
7+
- id: ruff
8+
args: [ --fix ]
9+
# Run the formatter.
10+
- id: ruff-format

pyproject.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[project]
2+
name = "litecli"
3+
version = "1.11.1"
4+
description = "CLI for SQLite Databases with auto-completion and syntax highlighting."
5+
readme = "README.md"
6+
requires-python = ">=3.7"
7+
license = {text = "BSD"}
8+
authors = [
9+
{name = "dbcli", email = "[email protected]"}
10+
]
11+
urls = { "homepage" = "https://github.com/dbcli/litecli" }
12+
dependencies = [
13+
"cli-helpers[styles]>=2.2.1",
14+
"click>=4.1",
15+
"configobj>=5.0.5",
16+
"prompt-toolkit>=3.0.3,<4.0.0",
17+
"pygments>=1.6",
18+
"sqlparse>=0.4.4",
19+
]
20+
21+
22+
[project.scripts]
23+
litecli = "litecli.main:cli"
24+
25+
[project.optional-dependencies]
26+
dev = [
27+
"behave>=1.2.6",
28+
"coverage>=7.2.7",
29+
"pexpect>=4.9.0",
30+
"pytest>=7.4.4",
31+
"pytest-cov>=4.1.0",
32+
"tox>=4.8.0",
33+
]
34+
35+
[tool.setuptools.package-data]
36+
litecli = ["liteclirc", "AUTHORS"]
37+
38+
[tool.ruff]
39+
line-length = 140

requirements-dev.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

setup.cfg

Lines changed: 0 additions & 18 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 70 deletions
This file was deleted.

tasks.py

Lines changed: 0 additions & 129 deletions
This file was deleted.

tests/test_completion_refresher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import time
22
import pytest
3-
from mock import Mock, patch
3+
from unittest.mock import Mock, patch
44

55

66
@pytest.fixture

0 commit comments

Comments
 (0)