@@ -19,14 +19,7 @@ versionfile-sdist = "src/ml_project/_version.py"
1919versionfile-wheel = " ml_project/_version.py"
2020
2121[tool .hatch .build .targets .sdist ]
22- include = [
23- " src" ,
24- " docs" ,
25- " tests" ,
26- " tools" ,
27- " scripts" ,
28- " deps" ,
29- ]
22+ include = [" src" , " docs" , " tests" , " tools" , " scripts" , " deps" ]
3023
3124[tool .hatch .build .targets .wheel ]
3225sources = [" src" ]
@@ -60,18 +53,25 @@ source = "https://github.com/deargen/python-project-template-2024"
6053documentation = " https://deargen-ai.gitlab.io/python-project-template-docs"
6154
6255[project .scripts ]
63- ml-project = " ml_project.cli:main" # CHANGE
56+ ml-project = " ml_project.cli:main" # CHANGE
6457
6558[tool .projector .pip-compile ]
6659# https://github.com/deargen/workflows/blob/master/python-projector
6760requirements-in-dir = " deps"
6861requirements-out-dir = " deps/lock"
69- python-platforms = [" x86_64-manylinux_2_28" , " aarch64-apple-darwin" , " x86_64-apple-darwin" ,
62+ python-platforms = [
63+ " x86_64-manylinux_2_28" ,
64+ " aarch64-apple-darwin" ,
65+ " x86_64-apple-darwin" ,
7066 # "x86_64-pc-windows-msvc",
7167]
7268
7369[tool .pytest .ini_options ]
74- addopts = [" --cov=ml_project" , " --nbval" , " --nbval-current-env" ] # CHANGE (name of the importing module name)
70+ addopts = [
71+ " --cov=ml_project" ,
72+ " --nbval" ,
73+ " --nbval-current-env" ,
74+ ] # CHANGE (name of the importing module name)
7575testpaths = [" tests" ]
7676
7777log_cli = true
@@ -102,9 +102,7 @@ namespace-packages = ["scripts"]
102102
103103[tool .ruff .lint ]
104104# OPTIONALLY ADD MORE LATER
105- select = [
106- " ALL" ,
107- ]
105+ select = [" ALL" ]
108106
109107ignore = [
110108 " E402" , # Module level import not at top of file
@@ -126,7 +124,7 @@ ignore = [
126124 " TRY003" , # long message in except
127125 " TRY400" , # logger.exception instead of logger.error
128126 " PLR2004" , # magic value comparison
129- " PLW2901" , # loop variable overwritten by assignment target
127+ " PLW2901" , # loop variable overwritten by assignment target
130128 " COM812" , # missing trailing comma
131129 " RET504" , # return with unnecessary assignment
132130 " RET505" ,
@@ -142,15 +140,15 @@ ignore = [
142140 " TD" , # TODO
143141 " FIX" , # TODO
144142 " ARG" , # unused argument
145- " PERF"
143+ " PERF" ,
146144]
147145
148146[tool .ruff .lint .per-file-ignores ]
149147"__init__.py" = [
150- " F401" , # Ignore seemingly unused imports (they're meant for re-export)
148+ " F401" , # Ignore seemingly unused imports (they're meant for re-export)
151149]
152150"*.ipynb" = [
153- " T201" , # ignore print statement in notebook
151+ " T201" , # ignore print statement in notebook
154152]
155153# Directories that do not contain s, r, and c
156154"[!s][!r][!c]*/**" = [" INP001" ] # Implicit namespace package (no __init__.py)
0 commit comments