-
Notifications
You must be signed in to change notification settings - Fork 46
/
pyproject.toml
88 lines (73 loc) · 2.58 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
84
85
86
87
88
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
[tool.poetry]
name = "graphar-pyspark"
version = "0.0.1"
description = "PySpark bindings to GraphAr scala spark package"
authors = ["Semyon Sinchenko <[email protected]>"]
readme = "README.md"
packages = [{include = "graphar_pyspark"}]
[tool.poetry.dependencies]
python = "^3.10"
[tool.poetry.group.spark]
optional = true
[tool.poetry.group.spark.dependencies]
pyspark = "3.5.1" # TODO: relax requirement when scala part will be available for multiple spark versions
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.lint.dependencies]
ruff = "*"
[tool.poetry.group.tests]
optional = true
[tool.poetry.group.tests.dependencies]
pytest = "*"
pytest-cov = "*"
pyyaml = "*"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
pdoc = "*"
[tool.ruff]
exclude = ["tests"]
line-length = 150
select = ["ALL"]
ignore = [
"UP007", # bad compatibility with python < 3.10
"UP037", # bad compatibility with python < 3.10
"ANN101", # requires 3d party tool, like typing-extensions
"ANN401", # it is questinable
"SLF001", # we cannot avoid accessing private members of SparkSession
"PLR0913", # public API follows Scala API, changing signatures is not possible
"FBT001", # not a problem in our code
"FBT002", # not a problem in our code
"TD002", # our todos does not have authorship
"TD003", # our todos does not have issue links
"D203", # not compatible with D211
"D213", # not compatible with D212
"TCH001", # the whole idea of TCHxxx rules is very questinable
"TCH002", # it makes code harder to read
"TCH003", # it makes code harder to read
"D105", # magic methods are self-documented
"B905", # not works in python 3.9
]
[tool.pytest]
testpaths = "tests"
[tool.coverage.run]
omit = ["tests/*"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"