-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
83 lines (73 loc) · 1.78 KB
/
pyproject.toml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tool.poetry]
name = "JSP"
version = "1.0.0"
description = "Predict the salary of any UK job ad based on its contents."
authors = ["Rodrigo Leite <rodrigols89.inbox@gmail.com>"]
license = "MIT"
packages = [{ include = "jsp" }]
readme = "README.md"
classifiers = [
"Natural Language :: English",
"Programming Language :: Python :: 3.11",
]
[tool.poetry.scripts]
jsp = "jsp.cli.main:app"
[tool.poetry.dependencies]
python = "^3.10"
[tool.poetry.group.dev.dependencies]
taskipy = "^1.12.2"
scikit-learn = "^1.4.1.post1"
catboost = "^1.2.3"
pandas = "^2.2.1"
black = "^24.2.0"
isort = "^5.13.2"
flake8 = "^7.0.0"
pre-commit = "^3.6.2"
pyupgrade = "^3.15.1"
sqlalchemy = "^2.0.27"
psycopg2-binary = "^2.9.9"
typer = "^0.9.0"
notebook = "^7.1.1"
pillow = "^10.2.0"
streamlit = "^1.31.1"
[tool.poetry.group.test.dependencies]
pytest = "^8.0.2"
pytest-cov = "^4.1.0"
pytest-mock = "^3.12.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
pythonpath = "."
addopts = "--doctest-modules"
[tool.isort]
profile = "black"
line_length = 79
[tool.taskipy.tasks]
add-future = "isort . --add-import 'from __future__ import annotations'"
check-isort = "isort --check --diff ."
check-black = "black --check --diff ."
check-flake8 = "flake8 ."
apply-linters = "task add-future && task check-isort && task check-black && task check-flake8"
precommit = "pre-commit run --all-files"
pre_test = "task apply-linters && task precommit"
test = "pytest -s -x --cov=jsp -vv"
post_test = "coverage html"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/drigols/jsp/issues"
[tool.black]
line-length = 79
include = '\.pyi?$' # All Python files
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''