Skip to content

Commit 1757e3a

Browse files
committed
Chore: Include updated project configuration
1 parent 9ffaa03 commit 1757e3a

2 files changed

Lines changed: 41 additions & 15 deletions

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ doc/auto_examples/
1212
doc/modules/generated/
1313
doc/datasets/generated/
1414

15+
# IDE specific
16+
.vscode/
17+
1518
# Distribution / packaging
1619

1720
.Python
@@ -75,4 +78,4 @@ target/
7578
.LSOverride
7679

7780
# auto-generated files
78-
skltemplate/_version.py
81+
skltemplate/_version.py

pyproject.toml

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,22 @@ description = "A template for scikit-learn compatible packages."
1313
readme = "README.md"
1414
requires-python = ">=3.9"
1515
dependencies = [
16-
"scikit-learn>=1.4.2",
16+
"numpy",
17+
"scipy",
18+
"scikit-learn",
1719
]
1820
classifiers = [
21+
"Intended Audience :: Science/Research",
22+
"Intended Audience :: Developers",
23+
"Programming Language :: Python",
24+
"Topic :: Software Development",
25+
"Topic :: Scientific/Engineering",
1926
"Programming Language :: Python :: 3",
2027
"Programming Language :: Python :: 3.9",
2128
"Programming Language :: Python :: 3.10",
2229
"Programming Language :: Python :: 3.11",
2330
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: 3.13",
2432
"License :: OSI Approved :: BSD License",
2533
"Operating System :: POSIX",
2634
"Operating System :: Unix",
@@ -29,8 +37,15 @@ classifiers = [
2937
]
3038

3139
[project.urls]
32-
Homepage = "https://github.com/scikit-learn-contrib/project-template"
33-
Issues = "https://github.com/scikit-learn-contrib/project-template/issues"
40+
"Homepage" = "https://github.com/shivvor2/denmune-skl"
41+
"Bug Tracker" = "https://github.com/shivvor2/denmune-skl/issues"
42+
"Documentation" = "https://shivvor2.github.io/denmune-skl/"
43+
"Source Code" = "https://github.com/shivvor2/denmune-skl"
44+
45+
[tool.setuptools.packages.find]
46+
where = ["."]
47+
# This tells the build system to look for the 'denmune_skl' directory.
48+
include = ["denmune_skl*"]
3449

3550
[tool.setuptools_scm]
3651
version_file = "skltemplate/_version.py"
@@ -86,7 +101,7 @@ dev = ["doc", "lint", "test"]
86101

87102
[tool.black]
88103
line-length = 88
89-
target_version = ['py38', 'py39', 'py310']
104+
target-version = ["py39", "py310", "py311", "py312", "py313"]
90105
preview = true
91106
exclude = '''
92107
/(
@@ -98,17 +113,21 @@ exclude = '''
98113
force-exclude = "skltemplate/_version.py"
99114

100115
[tool.ruff]
101-
# max line length for black
102116
line-length = 88
103-
target-version = "py38"
104-
exclude=[
105-
".git",
106-
"__pycache__",
107-
"dist",
108-
"doc/_build",
109-
"doc/auto_examples",
110-
"build",
111-
"skltemplate/_version.py",
117+
select = [
118+
"C", "E", "F", "W", "I", "N", "D", "B", "A", "RUF", "S",
119+
"T20", "SIM", "ARG", "PTH", "PD", "PGH", "PIE", "PL",
120+
"TRY", "UP", "YTT"
121+
]
122+
ignore = [
123+
# D203: 1 blank line required before class docstring
124+
"D203",
125+
# D213: Multi-line docstring summary should start at the second line
126+
"D213",
127+
# D401: First line should be in imperative mood
128+
"D401",
129+
# D415: First line should end with a period
130+
"D415",
112131
]
113132

114133
[tool.ruff.lint]
@@ -129,6 +148,10 @@ ignore=[
129148
"examples/*"=["E402"]
130149
"doc/conf.py"=["E402"]
131150
"doc/_templates/numpydoc_docstring.py"=["F821", "W292"]
151+
# Tests can be less strict
152+
"denmune/tests/*" = ["D", "S101", "ARG001"]
153+
# Allow relative imports in __init__.py
154+
"denmune/__init__.py" = ["F401"]
132155

133156
[tool.pytest.ini_options]
134157
addopts = "--doctest-modules --color=yes"

0 commit comments

Comments
 (0)