Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.18.2
hooks:
- id: mypy
additional_dependencies: [types-seaborn, polars, pandas-stubs, matplotlib]
args: ["--ignore-missing-imports", "--strict"]
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
rev: 0.8.1
hooks:
- id: nbstripout
- repo: https://github.com/psf/black
rev: 23.12.1 # Replace with latest version
rev: 25.9.0 # Replace with latest version
hooks:
- id: black
args: [--line-length=79] # Match flake8's default
67 changes: 67 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# ========================================
# pyproject.toml — packaging-focused setup
# For the "nba" project
# ========================================

[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"

# ----------------------------------------
# Project metadata (PEP 621)
# ----------------------------------------
[project]
name = "nba"
version = "0.1.0"
description = "A data analysis project exploring NBA datasets using Polars, DuckDB, and Pandas."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "Jacob Schwandt" }]
maintainers = [{ name = "Jacob Schwandt" }]
keywords = ["NBA", "data", "DuckDB", "Polars", "Pandas", "basketball"]

# ----------------------------------------
# Core dependencies (runtime)
# ----------------------------------------
dependencies = [
"polars",
"pandas",
"duckdb",
"seaborn",
"matplotlib",
"click",
]

# ----------------------------------------
# Optional extras (e.g. dev environment)
# ----------------------------------------
[project.optional-dependencies]
dev = [
"pre-commit",
"black",
"flake8",
"mypy",
"isort",
"pytest",
"ipykernel",
"kaggle",
]

# ----------------------------------------
# Entry points (optional CLI command)
# ----------------------------------------
# If your project uses Click to create a CLI tool, expose it here:
[project.scripts]
nba-cli = "nba.main:main"
# This allows users to run "nba-cli" in terminal after installing.

# ----------------------------------------
# Include/exclude patterns for packaging
# ----------------------------------------
[tool.setuptools]
packages = ["nba"]
include-package-data = true
# Optional: specify non-code files to include
# [tool.setuptools.package-data]
# nba = ["data/*.csv"]