-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
126 lines (114 loc) · 2.37 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
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
[project]
name = "football"
description = ""
readme = "README.md"
authors = [
{name = "Kyle McEntush"},
]
dynamic = ["version"]
dependencies = [
"cvxpy",
"jupyterlab",
"polars",
"prefect",
"sleeper-api-wrapper",
]
[project.optional-dependencies]
dev = [
"nbstripout",
"pre-commit",
"pyright",
"pytest",
"pytest-cov",
"ruff",
]
[tool.setuptools.dynamic]
version = {attr = "football.__version__"}
[tool.ruff]
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-commas
"COM",
# flake8-datetimez
"DTZ",
# flake8-quotes
"Q",
# pylint
"PLE", "PLR", "PLW",
# misc lints
"PIE",
# flake8-pyi
"PYI",
# tidy imports
"TID",
# implicit string concatenation
"ISC",
# type-checking imports
"TCH",
# isort
"I",
# comprehensions
"C4",
# pygrep-hooks
"PGH",
# Ruff-specific rules
"RUF",
# Upgrade syntax
"UP",
]
ignore = [
# module level import not at top of file
"E402",
# too many branches
"PLR0912",
# too many arguments to function call
"PLR0913",
# too many statements in function
"PLR0915",
# magic value used in comparison,
"PLR2004",
# do not use mutable models structures for argument defaults
"B006",
# recommended by Ruff to disable to avoid issues with formatter
"COM812", "ISC001",
]
per-file-ignores = {"__init__.py" = ["F401"]}
[tool.ruff.lint.flake8-type-checking]
quote-annotations = true
[tool.mypy]
exclude = ['venv', '.venv']
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# Skip type checks
"if TYPE_CHECKING:"
]
ignore_errors = true
[tool.coverage.run]
omit = [
# Workflows are not tested
"*/workflows/*",
]