Skip to content

Commit 73353b5

Browse files
committed
Update contributing instructions, README, and setup scripts for improved clarity and functionality
1 parent 854779d commit 73353b5

5 files changed

Lines changed: 38 additions & 2 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Xurrent Python Dev Container",
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
4+
"features": {
5+
"ghcr.io/devcontainers/features/common-utils:2": {}
6+
},
7+
"postCreateCommand": "bash .devcontainer/setup.sh",
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"elagil.pre-commit-helper",
12+
"ms-python.python"
13+
]
14+
}
15+
}
16+
}

.devcontainer/setup.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@echo off
2+
3+
4+
echo "Install poetry"
5+
pip install poetry
6+
7+
echo "Install project dependencies including dev dependencies"
8+
poetry install --with dev
9+
10+
echo "Activate poetry virtual environment and open shell"
11+
eval $(poetry env activate)
12+
13+
echo "Install pre-commit hooks"
14+
pre-commit install

Contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
1. Clone the repository
66
2. pip install poetry
77
3. poetry install --with dev
8-
4. poetry shell
8+
4. eval $(poetry env activate)
99
5. pre-commit install
1010

1111
## Activate the virtual environment
1212

1313
```bash
14-
poetry shell
14+
eval $(poetry env activate)
1515
```
1616

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Xurrent Module
22

3+
[![PyPI version](https://img.shields.io/pypi/v/xurrent)](https://pypi.org/project/xurrent/)
4+
[![Downloads](https://img.shields.io/pypi/dm/xurrent)](https://pypistats.org/packages/xurrent)
5+
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
6+
7+
38
This module is used to interact with the Xurrent API. It provides a set of classes to interact with the API.
49

510
## Change Log

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pytest = "^8.3.4"
3333
python-dotenv = "^1.0.1"
3434
mock = "^5.1.0"
3535
pre-commit = "^4.0.1"
36+
shell = "^1.0.1"
3637

3738
[build-system]
3839
requires = ["poetry-core"]

0 commit comments

Comments
 (0)