-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
82 lines (72 loc) · 2.51 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
[project]
version="6.0.1"
requires-python = ">=3.12"
[tool.pytest.ini_options]
markers = ["integration: requires access to legislation SPARQL endpoint"]
pythonpath = "src"
[tool.ruff]
line-length = 120
src = ["src"]
[tool.ruff.lint]
ignore = ["E501", "G004", "PLR2004", "RUF005", "RUF012", "UP040", "S320"] # long lines, fstrings in logs, magic values, consider not concat, mutable classbits, type instead of TypeAlias, parsing in lxml
extend-select = ["W", "B", "Q", "C90", "I", "UP", "YTT", "ASYNC", "S", "BLE", "A", "COM", "C4", "DTZ", "T10", "DJ", "EM", "EXE",
"FA", "ISC", "ICN", "G"]
# extend-select = ["INP", "PIE", "T20", "PYI", "PT", "Q", "RSE", "RET", "SLF", "SLOT", "SIM", "TID", "TCH", "INT", "PTH",
# "FIX", "PGH", "PL", "TRY", "FLY", "PERF", "RUF"]
unfixable = ["ERA"]
# things skipped:
# N: naming, possibly good
# D: docstrings missing throughout
# ANN: annotations missing throughout
# FBT: not convinced boolean trap worth auto-banning.
# CPY: copyright at top of each file
# G: logging warnings -- fstrings bad?
# ARG: sometimes you need to accept arguments.
# TD: somewhat finicky details about formatting TODOs
# FIX: flags todos: possible to add -- skipped for now
# ERA: lots of false positives, not a good autofix
# PD, NPY, AIR: ignored, panda / numpy / airflow specific
# FURB: not yet out of preview
[tool.ruff.lint.extend-per-file-ignores]
"*/tests/*" = ["S101"]
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "semver"
version_provider = "pep621"
update_changelog_on_bump = true
[tool.poetry]
name = "tests"
version = "6.0.1"
description = ""
authors = ["David McKee <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
spacy = "^3.8.2"
pandas = "^2.2.3"
psycopg2 = "^2.9.10"
beautifulsoup4 = "^4.12.3"
spaczz = "^0.6.1"
lxml = "^5.3.0"
testing-postgresql = "^1.3.0"
sqlalchemy = "^2.0.36"
coverage = "^7.6.7"
boto = "^2.49.0"
moto = "^5.0.21"
mock = "^5.1.0"
pytest = "^8.3.3"
pytest-postgresql = "^6.1.1"
psycopg = "^3.2.3"
sparqlwrapper = "^2.0.0"
python-dotenv = "^1.0.1"
rapidfuzz = "^3.10.1"
ds-caselaw-marklogic-api-client = "^28.0.0"
aws-lambda-powertools = "^3.3.0"
pytest-socket = "^0.7.0"
pytest-env = "^1.1.5"
boto3-stubs = {extras = ["essential"], version = "^1.35.67"}
en-core-web-sm = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl"}
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"