Skip to content

Commit 5088c80

Browse files
committed
Add newer Python versions since we are compatible
1 parent 4491c89 commit 5088c80

1 file changed

Lines changed: 136 additions & 134 deletions

File tree

pyproject.toml

Lines changed: 136 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,59 @@
11
# -*- coding: utf-8 -*-
22

3-
# License: BSD 3-Clause
3+
# license: bsd 3-clause
44
[build-system]
55
requires = ["setuptools >= 61.0"]
66
build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "openml"
10-
dynamic = ["version"] # Will take it from the __version__ file, update there
10+
dynamic = ["version"] # will take it from the __version__ file, update there
1111
dependencies = [
1212
"liac-arff>=2.4.0",
1313
"xmltodict",
1414
"requests",
1515
"scikit-learn>=0.18",
16-
"python-dateutil", # Installed through pandas anyway.
16+
"python-dateutil", # installed through pandas anyway.
1717
"pandas>=1.0.0",
1818
"scipy>=0.13.3",
1919
"numpy>=1.6.2",
2020
"minio",
2121
"pyarrow",
22-
"tqdm", # For MinIO download progress bars
22+
"tqdm", # for minio download progress bars
2323
"packaging",
2424
]
2525
requires-python = ">=3.8"
2626
authors = [
27-
{ name = "Matthias Feurer", email="feurerm@informatik.uni-freiburg.de" },
28-
{ name = "Jan van Rijn" },
29-
{ name = "Arlind Kadra" },
30-
{ name = "Pieter Gijsbers" },
31-
{ name = "Neeratyoy Mallik" },
32-
{ name = "Sahithya Ravi" },
33-
{ name = "Andreas Müller" },
34-
{ name = "Joaquin Vanschoren " },
35-
{ name = "Frank Hutter" },
27+
{ name = "matthias feurer", email="feurerm@informatik.uni-freiburg.de" },
28+
{ name = "jan van rijn" },
29+
{ name = "arlind kadra" },
30+
{ name = "pieter gijsbers" },
31+
{ name = "neeratyoy mallik" },
32+
{ name = "sahithya ravi" },
33+
{ name = "andreas müller" },
34+
{ name = "joaquin vanschoren " },
35+
{ name = "frank hutter" },
3636
]
37-
readme = "README.md"
38-
description = "Python API for OpenML"
37+
readme = "readme.md"
38+
description = "python api for openml"
3939
classifiers = [
40-
"Intended Audience :: Science/Research",
41-
"Intended Audience :: Developers",
42-
"License :: OSI Approved :: BSD License",
43-
"Programming Language :: Python",
44-
"Topic :: Software Development",
45-
"Topic :: Scientific/Engineering",
46-
"Operating System :: POSIX",
47-
"Operating System :: Unix",
48-
"Operating System :: MacOS",
49-
"Programming Language :: Python :: 3",
50-
"Programming Language :: Python :: 3.8",
51-
"Programming Language :: Python :: 3.9",
52-
"Programming Language :: Python :: 3.10",
40+
"intended audience :: science/research",
41+
"intended audience :: developers",
42+
"license :: osi approved :: bsd license",
43+
"programming language :: python",
44+
"topic :: software development",
45+
"topic :: scientific/engineering",
46+
"operating system :: posix",
47+
"operating system :: unix",
48+
"operating system :: macos",
49+
"programming language :: python :: 3",
50+
"programming language :: python :: 3.8",
51+
"programming language :: python :: 3.9",
52+
"programming language :: python :: 3.10",
53+
"programming language :: python :: 3.11",
54+
"programming language :: python :: 3.12",
5355
]
54-
license = { file = "LICENSE" }
56+
license = { file = "license" }
5557

5658
[project.scripts]
5759
openml = "openml.cli:main"
@@ -114,7 +116,7 @@ testpaths = ["tests"]
114116
minversion = "7.0"
115117
xfail_strict = true
116118
filterwarnings=[
117-
"ignore:the matrix subclass:PendingDeprecationWarning"
119+
"ignore:the matrix subclass:pendingdeprecationwarning"
118120
]
119121
markers = [
120122
"server: anything that connects to a server",
@@ -131,87 +133,87 @@ show-source = true
131133
src = ["openml", "tests", "examples"]
132134
unsafe-fixes = true
133135

134-
# Allow unused variables when underscore-prefixed.
135-
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
136+
# allow unused variables when underscore-prefixed.
137+
dummy-variable-rgx = "^(_+|(_+[a-za-z0-9_]*[a-za-z0-9]+?))$"
136138

137139
select = [
138-
"A",
139-
# "ANN", # Handled by mypy
140-
"ARG",
141-
"B",
142-
"BLE",
143-
"COM",
144-
"C4",
145-
"D",
146-
# "DTZ", # One day I should know how to utilize timezones and dates...
147-
"E",
148-
# "EXE", Meh
149-
"ERA",
150-
"F",
151-
"FBT",
152-
"I",
153-
# "ISC", # Favours implicit string concatenation
154-
"INP",
155-
# "INT", # I don't understand this one
156-
"N",
157-
"NPY",
158-
"PD",
159-
"PLC",
160-
"PLE",
161-
"PLR",
162-
"PLW",
163-
"PIE",
164-
"PT",
165-
"PTH",
166-
# "PYI", # Specific to .pyi files for type stubs
167-
"Q",
168-
"PGH004",
169-
"RET",
170-
"RUF",
171-
"C90",
172-
"S",
173-
# "SLF", # Private member accessed (sure, it's python)
174-
"SIM",
175-
# "TRY", # Good in principle, would take a lot of work to statisfy
176-
"T10",
177-
"T20",
178-
"TID",
179-
"TCH",
180-
"UP",
181-
"N",
182-
"W",
183-
"YTT",
140+
"a",
141+
# "ann", # handled by mypy
142+
"arg",
143+
"b",
144+
"ble",
145+
"com",
146+
"c4",
147+
"d",
148+
# "dtz", # one day i should know how to utilize timezones and dates...
149+
"e",
150+
# "exe", meh
151+
"era",
152+
"f",
153+
"fbt",
154+
"i",
155+
# "isc", # favours implicit string concatenation
156+
"inp",
157+
# "int", # i don't understand this one
158+
"n",
159+
"npy",
160+
"pd",
161+
"plc",
162+
"ple",
163+
"plr",
164+
"plw",
165+
"pie",
166+
"pt",
167+
"pth",
168+
# "pyi", # specific to .pyi files for type stubs
169+
"q",
170+
"pgh004",
171+
"ret",
172+
"ruf",
173+
"c90",
174+
"s",
175+
# "slf", # private member accessed (sure, it's python)
176+
"sim",
177+
# "try", # good in principle, would take a lot of work to statisfy
178+
"t10",
179+
"t20",
180+
"tid",
181+
"tch",
182+
"up",
183+
"n",
184+
"w",
185+
"ytt",
184186
]
185187

186188
ignore = [
187-
"D105", # Missing docstring in magic mthod
188-
"D401", # First line of docstring should be in imperative mood
189-
"N806", # Variable X in function should be lowercase
190-
"E731", # Do not assign a lambda expression, use a def
191-
"S101", # Use of assert detected.
192-
"W292", # No newline at end of file
193-
"PLC1901", # "" can be simplified to be falsey
194-
"TCH003", # Move stdlib import into TYPE_CHECKING
195-
"COM812", # Trailing comma missing (handled by linter, ruff recommend disabling if using formatter)
196-
"N803", # Argument should be lowercase (but we accept things like `X`)
189+
"d105", # missing docstring in magic mthod
190+
"d401", # first line of docstring should be in imperative mood
191+
"n806", # variable x in function should be lowercase
192+
"e731", # do not assign a lambda expression, use a def
193+
"s101", # use of assert detected.
194+
"w292", # no newline at end of file
195+
"plc1901", # "" can be simplified to be falsey
196+
"tch003", # move stdlib import into type_checking
197+
"com812", # trailing comma missing (handled by linter, ruff recommend disabling if using formatter)
198+
"n803", # argument should be lowercase (but we accept things like `x`)
197199

198-
# TODO(@eddibergman): These should be enabled
199-
"D100", # Missing docstring in public module
200-
"D103", # Missing docstring in public function
201-
"D104", # Missing docstring in public package
200+
# todo(@eddibergman): these should be enabled
201+
"d100", # missing docstring in public module
202+
"d103", # missing docstring in public function
203+
"d104", # missing docstring in public package
202204

203-
# TODO(@eddiebergman): Maybe fix
204-
"PLR2004", # Magic value used in comparison, consider replacing 2 with a constant variable
205-
"D400", # First line must end with a period (@eddiebergman too many to fix so ignoring this for now)
206-
"D203", # 1 blank line required before class docstring
207-
"D205", # 1 blank line between summary and description
205+
# todo(@eddiebergman): maybe fix
206+
"plr2004", # magic value used in comparison, consider replacing 2 with a constant variable
207+
"d400", # first line must end with a period (@eddiebergman too many to fix so ignoring this for now)
208+
"d203", # 1 blank line required before class docstring
209+
"d205", # 1 blank line between summary and description
208210

209-
# TODO(@eddiebergman): Could be backwards breaking
210-
"N802", # Public function name should be lower case (i.e. get_X())
211+
# todo(@eddiebergman): could be backwards breaking
212+
"n802", # public function name should be lower case (i.e. get_x())
211213
]
212214

213215
exclude = [
214-
# TODO(eddiebergman): Tests should be re-enabled after the refactor
216+
# todo(eddiebergman): tests should be re-enabled after the refactor
215217
"tests",
216218
#
217219
".bzr",
@@ -236,44 +238,44 @@ exclude = [
236238
"docs",
237239
]
238240

239-
# Exclude a variety of commonly ignored directories.
241+
# exclude a variety of commonly ignored directories.
240242
[tool.ruff.per-file-ignores]
241243
"tests/*.py" = [
242-
"D100", # Undocumented public module
243-
"D101", # Missing docstring in public class
244-
"D102", # Missing docstring in public method
245-
"D103", # Missing docstring in public function
246-
"S101", # Use of assert
247-
"ANN201", # Missing return type annotation for public function
248-
"FBT001", # Positional boolean argument
249-
"PLR2004",# No use of magic numbers
250-
"PD901", # X is a bad variable name. (pandas)
251-
"TCH", # https://docs.astral.sh/ruff/rules/#flake8-type-checking-tch
252-
"N803", # Argument name {name} should be lowercase
244+
"d100", # undocumented public module
245+
"d101", # missing docstring in public class
246+
"d102", # missing docstring in public method
247+
"d103", # missing docstring in public function
248+
"s101", # use of assert
249+
"ann201", # missing return type annotation for public function
250+
"fbt001", # positional boolean argument
251+
"plr2004",# no use of magic numbers
252+
"pd901", # x is a bad variable name. (pandas)
253+
"tch", # https://docs.astral.sh/ruff/rules/#flake8-type-checking-tch
254+
"n803", # argument name {name} should be lowercase
253255
]
254256
"openml/cli.py" = [
255-
"T201", # print found
256-
"T203", # pprint found
257+
"t201", # print found
258+
"t203", # pprint found
257259
]
258260
"openml/__version__.py" = [
259-
"D100", # Undocumented public module
261+
"d100", # undocumented public module
260262
]
261263
"__init__.py" = [
262-
"I002", # Missing required import (i.e. from __future__ import annotations)
264+
"i002", # missing required import (i.e. from __future__ import annotations)
263265
]
264266
"examples/*.py" = [
265-
"D101", # Missing docstring in public class
266-
"D102", # Missing docstring in public method
267-
"D103", # Missing docstring in public function
268-
"D415", # First line should end with a . or ? or !
269-
"INP001", # File is part of an implicit namespace package, add an __init__.py
270-
"I002", # Missing required import (i.e. from __future__ import annotations)
271-
"E741", # Ambigiuous variable name
272-
"T201", # print found
273-
"T203", # pprint found
274-
"ERA001", # found commeneted out code
275-
"E402", # Module level import not at top of cell
276-
"E501", # Line too long
267+
"d101", # missing docstring in public class
268+
"d102", # missing docstring in public method
269+
"d103", # missing docstring in public function
270+
"d415", # first line should end with a . or ? or !
271+
"inp001", # file is part of an implicit namespace package, add an __init__.py
272+
"i002", # missing required import (i.e. from __future__ import annotations)
273+
"e741", # ambigiuous variable name
274+
"t201", # print found
275+
"t203", # pprint found
276+
"era001", # found commeneted out code
277+
"e402", # module level import not at top of cell
278+
"e501", # line too long
277279
]
278280

279281

@@ -296,10 +298,10 @@ show_error_codes = true
296298

297299
warn_unused_configs = true # warn about unused [tool.mypy] lines
298300

299-
follow_imports = "normal" # Type check top level api code we use from imports
301+
follow_imports = "normal" # type check top level api code we use from imports
300302
ignore_missing_imports = false # prefer explicit ignores
301303

302-
disallow_untyped_defs = true # All functions must have types
304+
disallow_untyped_defs = true # all functions must have types
303305
disallow_untyped_decorators = true # ... even decorators
304306
disallow_incomplete_defs = true # ...all types
305307

@@ -312,9 +314,9 @@ warn_return_any = true
312314
[[tool.mypy.overrides]]
313315
module = ["tests.*", "openml.extensions.sklearn.*"]
314316

315-
# TODO(eddiebergman): This should be re-enabled after tests get refactored
317+
# todo(eddiebergman): this should be re-enabled after tests get refactored
316318
ignore_errors = true
317-
#disallow_untyped_defs = false # Sometimes we just want to ignore verbose types
318-
#disallow_untyped_decorators = false # Test decorators are not properly typed
319-
#disallow_incomplete_defs = false # Sometimes we just want to ignore verbose types
319+
#disallow_untyped_defs = false # sometimes we just want to ignore verbose types
320+
#disallow_untyped_decorators = false # test decorators are not properly typed
321+
#disallow_incomplete_defs = false # sometimes we just want to ignore verbose types
320322
#disable_error_code = ["var-annotated"]

0 commit comments

Comments
 (0)