Skip to content

nyuoss/23-fall-python-template-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Technology Template

A robust starting point for Python projects, offering an integrated development environment with a complete toolchain.

Getting Started

Follow these steps to set up and run the template:

  1. Set up a virtual environment:

    • On macOS and Linux:

      python3 -m venv env
    • On Windows:

      py -m venv env
    • Activate the virtual environment:

      • On macOS and Linux: source env/bin/activate
      • On Windows: .\\env\\Scripts\\activate
  2. Clone this repository.

  3. Install dependencies:

    pip install -r requirements.txt
  4. Run tests:

    pytest
  5. Format your code:

    black .
  6. Static analysis with Ruff:

    ruff check .

Features

  • Python Version: 3.11+
  • Testing: Integrated with Pytest.
  • Continuous Integration: Set up with GitHub Actions.
  • Static Analysis: Enhanced with Ruff.
  • Code Formatting: Beautified with Black.
  • Dependency Management: Streamlined with Pip.

Linting with Ruff

We use Ruff for static analysis. It's an efficient linting tool re-implemented in Rust and supports an expansive set of lint rules.

  • Lint the entire project:

    ruff check .
  • Detailed documentation: For a deeper understanding and additional commands, refer to the official Ruff documentation.

Testing with Pytest

Pytest facilitates easy and efficient testing in our template.

Code Formatting with Black

Ensure your code adheres to our standards using Black.

License

This project adopts the MIT License. See the LICENSE.md file for comprehensive details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%