Skip to content

Commit 08fb765

Browse files
dguidoclaude
andcommitted
refactor: remove data library option from cookiecutter
Remove the data_library choice (polars/pandas/none) as it's rarely needed for Trail of Bits projects. This simplifies the template and reduces unnecessary options during project creation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 517395b commit 08fb765

3 files changed

Lines changed: 0 additions & 25 deletions

File tree

cookiecutter.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
"none"
2424
],
2525
"docstring_coverage": true,
26-
"data_library": [
27-
"polars",
28-
"pandas",
29-
"none"
30-
],
3126
"web_framework": [
3227
"fastapi",
3328
"none"

{{cookiecutter.project_slug}}/CLAUDE.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,6 @@ Tests can also live beside source files as `test_*.py` or `*_test.py`.
7070
7171
## Key Libraries
7272
73-
{%- if cookiecutter.data_library == "polars" %}
74-
- **Data processing**: Polars (preferred over pandas)
75-
```python
76-
import polars as pl
77-
df = pl.DataFrame({"col": [1, 2, 3]})
78-
```
79-
{%- elif cookiecutter.data_library == "pandas" %}
80-
- **Data processing**: Pandas
81-
```python
82-
import pandas as pd
83-
df = pd.DataFrame({"col": [1, 2, 3]})
84-
```
85-
{%- endif %}
86-
8773
{%- if cookiecutter.web_framework == "fastapi" %}
8874
- **Web framework**: FastAPI (never use Flask)
8975
```python
@@ -100,7 +86,6 @@ Tests can also live beside source files as `test_*.py` or `*_test.py`.
10086
## Framework Preferences
10187
10288
- **Web**: Always use FastAPI, never Flask
103-
- **Data**: Prefer Polars over Pandas for new code
10489
- **Async**: Use native async/await, not threading
10590
10691
## Common Patterns

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ classifiers = [
2020
"Programming Language :: Python :: 3",
2121
]
2222
dependencies = [
23-
{%- if cookiecutter.data_library == "polars" %}
24-
"polars >= 0.20.0",
25-
{%- elif cookiecutter.data_library == "pandas" %}
26-
"pandas >= 2.0.0",
27-
{%- endif %}
2823
{%- if cookiecutter.web_framework == "fastapi" %}
2924
"fastapi >= 0.100.0",
3025
"uvicorn[standard] >= 0.23.0",

0 commit comments

Comments
 (0)