-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (104 loc) · 3.64 KB
/
pyproject.toml
File metadata and controls
123 lines (104 loc) · 3.64 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "autofeat"
version = "2.1.3"
description = "Automatic Feature Engineering and Selection Linear Prediction Model"
authors = [{ name = "Franziska Horn", email = "cod3licious@gmail.com" }]
readme = "README.md"
license = "MIT"
keywords = ["automl", "feature engineering", "feature selection", "linear model"]
requires-python = ">=3.8.1,<3.15"
dependencies = [
"joblib>=1.2.0",
"numba>=0.53.1",
"numpy>=1.21.0,<2.0",
"pandas>=1.3.5,<3.0",
"pint>=0.17,<1.0",
"scikit-learn>=1.2.0,<1.6",
"scipy>=1.7.3",
"sympy>=1.7.1",
]
[dependency-groups]
dev = [
"ipython>=8.0.0",
"matplotlib>=3.7.2",
"mkdocs-material>=9.5.28",
"ty>=0.0.9",
"notebook>=6.5.0,<7.0",
"poethepoet>=0.24.4",
"pytest>=7.4.0",
"pyupgrade>=3.9.0",
"ruff>=0.14.0",
]
[project.urls]
Repository = "https://github.com/cod3licious/autofeat"
Documentation = "https://cod3licious.github.io/autofeat"
[tool.uv]
required-version = ">=0.7.13"
[tool.poe.tasks]
# run with `uv run poe format`
format = "bash -c 'pyupgrade --py38-plus $(find **/*.py) && ruff check --fix . && ruff format .'"
check = "bash -c 'ruff check . && ty check src'"
test = "bash -c 'pytest tests'"
[tool.ruff]
target-version = "py310"
line-length = 128
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".ipynb_checkpoints",
".mypy_cache",
".pytest_cache",
".pytype",
".ruff_cache",
".venv",
"__pypackages__",
"__pycache__",
"build",
"dist",
"*.ipynb",
]
[tool.ruff.lint]
select = ["A", "B", "C4", "D", "E", "F", "G", "I", "N", "Q", "W", "COM", "DTZ", "FA", "ICN", "INP", "PIE", "PD", "PL", "RSE", "RET", "RUF", "SIM", "SLF", "UP"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["C4", "D", "E", "G", "I", "Q", "W", "COM", "PD", "RSE", "RET", "RUF", "SIM", "SLF", "UP"]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B", "F841"]
# Ignore a few rules that we consider too strict.
ignore = ["E501", # Line too long
"E741", # Ambiguous variable name: `l`
"N999", # Invalid module name: '🏠_Home'
"N802", "N803", "N806", # names should be lowercase
"D1", # D100 - D107: Missing docstrings
"D212", # Multi-line docstring summary should start at the second line
"D400", # adds a period at the end of line (problematic when it is a path)
"D415", # First line should end with a period, question mark, or exclamation point
"D203", "D204", "D205", # required blank lines
"G004", # Logging statement uses f-string
"PIE790", # Unnecessary `pass` statement
"PLC0206", # Extracting value from dictionary without calling `.items()`
"PLR2004", # Magic value used in comparison, consider replacing 0.999 with a constant variable
"PLR09", # Too many arguments to function call
"COM812", # trailing comma - don't use together with formatter
]
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["autofeat", "autofeat.*"]
section-order = ["future", "standard-library", "third-party", "first-party", "tests", "local-folder"]
[tool.ruff.lint.isort.sections]
"tests" = ["tests"]
[tool.ruff.lint.flake8-import-conventions]
[tool.ty.rules]
no-matching-overload = "ignore"
invalid-argument-type = "ignore" # doesn't properly recognize pandas df columns argument
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--disable-warnings"
markers = ["slow"]