Skip to content

bladnman/python_notebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

initial_project_name

A wee python project

Setup

poetry install

Usage

Run the main script:

poetry run run

Adding dependencies

poetry add <package>

Common Poetry Commands

Development

# Install dependencies
poetry install

# Add a new dependency
poetry add <package>

# Add a development dependency
poetry add --group dev <package>

# Remove a dependency
poetry remove <package>

# Update dependencies
poetry update

# Show currently installed dependencies
poetry show

# Activate virtual environment
poetry shell

Testing & Linting

# Run tests
poetry run pytest

# Run specific test file
poetry run pytest tests/test_file.py

# Run linting
poetry run flake8
poetry run black .

Project Management

# Create a new project
poetry new project_name

# Build project
poetry build

# Publish to PyPI
poetry publish

# Export requirements.txt
poetry export -f requirements.txt --output requirements.txt

Development Setup

Pre-commit Hooks (recommended)

# Install pre-commit
poetry add --group dev pre-commit

# Install git hooks
pre-commit install

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published