This repository was archived by the owner on Jun 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (121 loc) · 3.05 KB
/
pyproject.toml
File metadata and controls
128 lines (121 loc) · 3.05 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[tool.poetry]
name = "PyEntityshape"
version = "1.0.0"
description = "Python library to validate Wikidata items using the entityshape API."
authors = ["Dennis Priskorn <68460690+dpriskorn@users.noreply.github.com>"]
license = "GPLv3+"
readme = "README.md"
repository = "https://github.com/dpriskorn/PyEntityshape"
keywords = ["entityshape API", "wikidata", "entityschema", "entity validation"]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules"
]
packages = [
{ include = "entityshape" },
]
[tool.poetry.dependencies]
pydantic = "^1.10.9"
python = ">=3.8,<=3.12"
requests = "^2.28.1"
# wikibaseintegrator = "^0.12.1"
[tool.poetry.group.dev.dependencies]
black = "^22.8.0"
codespell = "^2.2.1"
coverage = "^6.5.0"
dead = "^1.5.0"
mypy = "^1.1.1"
pre-commit = "^2.20.0"
pytest = "^7.1.3"
ruff = "^0.0.263"
safety = "^2.2.0"
tomli = "^2.0.1"
types-python-dateutil = "^2.8.19.2"
types-requests = "^2.28.11.2"
[tool.ruff]
select = [
"A", # flake8-builtins
# "ASYNC", # flake8-async
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # McCabe cyclomatic complexity
"DTZ", # flake8-datetimez
"E", # pycodestyle
"EXE", # flake8-executable
"F", # Pyflakes
"FBT", # flake8-boolean-trap
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
# "ANN", # flake8-annotations
# "COM", # flake8-commas
# "D", # pydocstyle
# "DJ", # flake8-django
# "EM", # flake8-errmsg
# "ERA", # eradicate
# "NPY", # NumPy-specific rules
# "PD", # pandas-vet
# "Q", # flake8-quotes
# "RET", # flake8-return
# "T20", # flake8-print
# "TRY", # tryceratops
]
ignore = [
"A003",
"ARG002",
"DTZ003",
"EXE002",
"F401",
"FBT001",
"FBT002",
"G003",
"G004",
"INP001",
"N999",
"PGH003",
"PLC1901",
"PLR2004",
"PLR5501",
"PLW2901",
"PTH110",
"PTH123",
#"RUF012", # Error: src/models/api/handlers/all.py:18:35: RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
"RSE102",
"S113",
"S324",
"S501",
]
line-length = 160
target-version = "py37"
[tool.ruff.isort]
known-first-party = ["config"]
[tool.ruff.mccabe]
max-complexity = 11
[tool.ruff.per-file-ignores]
"tests/*" = ["PT009", "PT018", "RUF001", "RUF003", "S101", "ISC001", #"RUF012"
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"