A robust starting point for Python projects, offering an integrated development environment with a complete toolchain.
Follow these steps to set up and run the template:
-
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
- On macOS and Linux:
-
-
Clone this repository.
-
Install dependencies:
pip install -r requirements.txt
-
Run tests:
pytest
-
Format your code:
black .
-
Static analysis with Ruff:
ruff check .
- 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.
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.
Pytest facilitates easy and efficient testing in our template.
-
Run all tests:
pytest
-
More about Pytest: Check the official Pytest documentation.
Ensure your code adheres to our standards using Black.
-
Format all source files:
black .
-
Learn more about Black: Visit the official Black documentation.
This project adopts the MIT License. See the LICENSE.md file for comprehensive details.