-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (128 loc) · 3.71 KB
/
pyproject.toml
File metadata and controls
140 lines (128 loc) · 3.71 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
138
139
140
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
[project]
name = "xcsf"
version = "1.4.10"
description = "XCSF learning classifier system: rule-based evolutionary machine learning"
readme = "README.md"
requires-python = ">=3.9"
license = "GPL-3.0-or-later"
maintainers = [
{name = "Richard Preen", email = "rpreen@gmail.com"}
]
keywords = [
"divide and conquer",
"evolutionary algorithm",
"genetic programming",
"learning classifier system",
"least squares",
"machine learning",
"neural networks",
"neuroevolution",
"reinforcement learning",
"rule-based",
"supervised learning",
"stochastic gradient descent",
"XCS",
"XCSF ",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: C",
"Programming Language :: C++",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: Microsoft :: Windows :: Windows 11",
]
[project.urls]
"Homepage" = "https://github.com/xcsf-dev/xcsf"
"Changelog" = "https://github.com/xcsf-dev/xcsf/CHANGELOG.md"
"Documentation" = "https://github.com/xcsf-dev/xcsf/wiki"
"Bug Tracker" = "https://github.com/xcsf-dev/xcsf/issues"
"Discussions" = "https://github.com/xcsf-dev/xcsf/discussions"
[tool.setuptools]
zip-safe = false
include-package-data = true
packages = {find = {exclude = ["build*", "cfg*", "doc*", "python*", "test*"]}}
[tool.ruff]
indent-width = 4
line-length = 88
target-version = "py39"
extend-include = ["*.ipynb"]
lint.select = [
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe
# "D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # pycodestyle
"EM", # flake8-errmsg
"ERA", # eradicate
"F", # Pyflakes
"I", # isort
"ICN", # flake8-import-conventions
"N", # pep8-naming
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PLC", # Pylint
"PLE", # Pylint
"PLR", # Pylint
"PLW", # Pylint
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"RUF100", # Ruff-specific
"S", # flake8-bandit
"SIM", # flake8-simplify
# "T20", # flake8-print
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
exclude = [
"__init__.py",
"setup.py",
]
lint.ignore = [
"S301", # pickle
"S311", # Standard pseudo-random generators
]
[tool.ruff.lint.pep8-naming]
extend-ignore-names = [
"X", "X1", "X_train", "X_val", "X_test", "X_predict",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 80
[tool.ruff.lint.extend-per-file-ignores]
"test/**" = ["S101", "PLR2004", "ANN"]
"python/example_rmux.py" = ["PLR2004"]
"python/example_maze.py" = ["PLR2004"]
"python/notebooks/example_cartpole.ipynb" = ["E501", "SIM115"]
"python/notebooks/example_maze.ipynb" = ["E501", "PLR2004"]
"python/notebooks/example_regression.ipynb" = ["PLR2004"]
"python/notebooks/example_rmux.ipynb" = ["PLR2004"]
"python/notebooks/example_tuning.ipynb" = ["E501", "ANN201"]
[tool.codespell]
ignore-words-list = [
"larg",
]