-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (127 loc) · 4.01 KB
/
Copy pathpyproject.toml
File metadata and controls
137 lines (127 loc) · 4.01 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
129
130
131
132
133
134
135
136
137
[project]
name = "airsenal"
version = "1.17.1"
description = "AI manager for Fantasy Premier League"
authors = [
{name = "Angus Williams", email = "anguswilliams91@gmail.com"},
{name = "Jack Roberts", email = "jroberts@turing.ac.uk"},
{name = "Nick Barlow", email = "nbarlow@turing.ac.uk"},
]
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.10,<4"
dependencies = [
"beautifulsoup4>=4.13.5",
"bpl-next>=0.5.0",
"click>=8.3.0",
"curl-cffi>=0.13.0",
"dateparser>=1.2.2",
"deap>=1.4.3",
"html5lib>=1.1",
"identify>=2.6.19",
"jax>=0.6.2",
"jaxlib>=0.6.2",
"lxml>=6.0.1",
"numpy>=2.2.6",
"pandas>=2.3.2",
"platformdirs>=4.4.0",
"prettytable>=3.16.0",
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"python-dateutil>=2.9.0.post0",
"requests>=2.32.5",
"sqlalchemy>=2.0.43",
"tqdm>=4.67.1",
]
[tool.hatch.metadata]
allow-direct-references = true
[project.optional-dependencies]
api = ["Flask>=3.0.2"]
notebook = ["jupyterlab>=4.1.2"]
plot = ["matplotlib>=3.8.3", "seaborn>=0.13.2"]
dev = [
"pytest>=8.4.2",
"ruff>=0.15.16",
"pre-commit>=4.3.0",
"mypy>=2.1.0",
"pytest-cov>=7.0.0",
"pytest-sugar>=1.1.1",
"types-dateparser>=1.2.2.20250809",
"types-requests>=2.32.4.20250913",
"types-python-dateutil>=2.9.0.20250822",
]
[project.scripts]
airsenal_run_pipeline = "airsenal.scripts.airsenal_run_pipeline:run_pipeline"
airsenal_setup_initial_db = "airsenal.scripts.fill_db_init:main"
airsenal_update_db = "airsenal.scripts.update_db:main"
airsenal_run_prediction = "airsenal.scripts.fill_predictedscore_table:main"
airsenal_make_squad = "airsenal.scripts.squad_builder:main"
airsenal_run_optimization = "airsenal.scripts.fill_transfersuggestion_table:main"
airsenal_make_transfers = "airsenal.scripts.make_transfers:main"
airsenal_set_lineup = "airsenal.scripts.set_lineup:main"
airsenal_replay_season = "airsenal.scripts.replay_season:main"
airsenal_env = "airsenal.scripts.set_env:main"
airsenal_check_data = "airsenal.scripts.data_sanity_checks:run_all_checks"
airsenal_dump_api = "airsenal.scripts.dump_api:main"
airsenal_dump_db = "airsenal.scripts.dump_db_contents:main"
airsenal_scrape_transfermarkt = "airsenal.scripts.scrape_transfermarkt:main"
airsenal_plot = "airsenal.scripts.plot_league_standings:main"
airsenal_save_absences = "airsenal.scripts.save_expected_absences:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
addopts = """
--cov=airsenal
--cov-report=xml
--pdbcls=IPython.terminal.debugger:TerminalPdb
"""
[tool.ruff]
line-length = 88
[tool.ruff.format]
docstring-code-format = true # code snippets in docstrings will be formatted
[tool.ruff.lint]
select = [
"E", "F", "W", # flake8
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
]
ignore = [
"PLR", # Design related pylint codes
"ISC001", # Conflicts with formatter
"G004", # f-strings with logger
]
flake8-unused-arguments.ignore-variadic-names = true # allow unused *args/**kwargs
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # allow unused imports in __init__.py files
]
"*/tests/*" = [
"B011", # allow using assert statements in tests
"ARG001" # allow unused arguments in tests, e.g. for pytest fixtures
]
[tool.mypy]
files = ["airsenal/framework", "airsenal/scripts"]
show_error_codes = true
warn_unreachable = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
strict = false
ignore_missing_imports = true