wzrdbrain 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wzrdbrain-0.1.1/CONTRIBUTING.md +65 -0
- {wzrdbrain-0.1.0 → wzrdbrain-0.1.1}/PKG-INFO +13 -34
- wzrdbrain-0.1.1/README.md +31 -0
- {wzrdbrain-0.1.0 → wzrdbrain-0.1.1}/pyproject.toml +1 -1
- wzrdbrain-0.1.0/CONTRIBUTING.md +0 -21
- wzrdbrain-0.1.0/README.md +0 -52
- {wzrdbrain-0.1.0 → wzrdbrain-0.1.1}/.github/workflows/ci.yml +0 -0
- {wzrdbrain-0.1.0 → wzrdbrain-0.1.1}/.github/workflows/release.yml +0 -0
- {wzrdbrain-0.1.0 → wzrdbrain-0.1.1}/.gitignore +0 -0
- {wzrdbrain-0.1.0 → wzrdbrain-0.1.1}/CODE_OF_CONDUCT.md +0 -0
- {wzrdbrain-0.1.0 → wzrdbrain-0.1.1}/LICENSE +0 -0
- {wzrdbrain-0.1.0 → wzrdbrain-0.1.1}/src/wzrdbrain/__init__.py +0 -0
- {wzrdbrain-0.1.0 → wzrdbrain-0.1.1}/src/wzrdbrain/wzrdbrain.py +0 -0
- {wzrdbrain-0.1.0 → wzrdbrain-0.1.1}/tests/test_wzrdbrain.py +0 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
# Contributing to wzrdbrain
|
2
|
+
|
3
|
+
First off, thank you for considering contributing!
|
4
|
+
|
5
|
+
## Submitting Changes
|
6
|
+
|
7
|
+
1. Create a new branch for your feature or bug fix.
|
8
|
+
2. Make your changes and commit them.
|
9
|
+
3. Use clear, concise messages (e.g., feat: add X, fix: correct Y).
|
10
|
+
4. Ensure all quality checks pass.
|
11
|
+
5. Push your branch and open a pull request.
|
12
|
+
|
13
|
+
## Development Setup
|
14
|
+
|
15
|
+
To get started with development, follow these steps:
|
16
|
+
|
17
|
+
1. **Clone the repository:**
|
18
|
+
```bash
|
19
|
+
git clone <your-fork-url>
|
20
|
+
cd wzrdbrain
|
21
|
+
```
|
22
|
+
|
23
|
+
2. **Create and activate a virtual environment:**
|
24
|
+
```bash
|
25
|
+
python -m venv .venv
|
26
|
+
source .venv/bin/activate # On Windows use: .venv\Scripts\activate
|
27
|
+
```
|
28
|
+
|
29
|
+
3. **Install the package in editable mode with development dependencies:**
|
30
|
+
This command installs the project itself along with tools like `pytest`, `ruff`, and `mypy`.
|
31
|
+
```bash
|
32
|
+
pip install -e ".[dev]"
|
33
|
+
```
|
34
|
+
|
35
|
+
## Running Quality Checks
|
36
|
+
|
37
|
+
Before submitting a pull request, please ensure your code passes all quality checks.
|
38
|
+
|
39
|
+
### Linting and Formatting
|
40
|
+
|
41
|
+
We use `ruff` for linting and `black` for formatting.
|
42
|
+
|
43
|
+
```bash
|
44
|
+
# Check for linting errors
|
45
|
+
ruff check .
|
46
|
+
|
47
|
+
# Format the code
|
48
|
+
black .
|
49
|
+
```
|
50
|
+
|
51
|
+
### Type Checking
|
52
|
+
|
53
|
+
We use `mypy` for static type checking.
|
54
|
+
|
55
|
+
```bash
|
56
|
+
mypy .
|
57
|
+
```
|
58
|
+
|
59
|
+
### Running Tests
|
60
|
+
|
61
|
+
We use `pytest` for running unit tests.
|
62
|
+
|
63
|
+
```bash
|
64
|
+
pytest
|
65
|
+
```
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: wzrdbrain
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: Basic APIs to generate tricks for wizard skating.
|
5
5
|
Project-URL: Homepage, https://github.com/nazroll/wzrdbrain
|
6
6
|
Project-URL: Documentation, https://github.com/nazroll/wzrdbrain#readme
|
@@ -55,7 +55,7 @@ Description-Content-Type: text/markdown
|
|
55
55
|
|
56
56
|
# wzrdbrain
|
57
57
|
|
58
|
-
|
58
|
+
A simple library to generate random trick combinations for wizard skating.
|
59
59
|
|
60
60
|
## Installation
|
61
61
|
|
@@ -66,42 +66,21 @@ pip install wzrdbrain
|
|
66
66
|
## Usage
|
67
67
|
|
68
68
|
```python
|
69
|
-
from wzrdbrain import generate_trick,
|
69
|
+
from wzrdbrain import generate_trick, generate_combo
|
70
70
|
|
71
|
-
#
|
72
|
-
print(generate_trick())
|
71
|
+
# Generate a single trick as a list of its parts
|
72
|
+
print(generate_trick())
|
73
|
+
# Example output: ['front', 'open', 'lion']
|
73
74
|
|
74
|
-
#
|
75
|
-
print(generate_combo(
|
75
|
+
# Generate a line of multiple tricks as formatted strings
|
76
|
+
print(generate_combo(3))
|
77
|
+
# Example output: ['front parallel', 'fakie toe press', 'forward 360']
|
76
78
|
```
|
77
79
|
|
78
|
-
##
|
80
|
+
## List of wizard skating tricks
|
79
81
|
|
80
|
-
|
81
|
-
# clone your repo
|
82
|
-
python -m venv .venv
|
83
|
-
source .venv/bin/activate # on Windows: .venv\Scripts\activate
|
84
|
-
pip install -e ".[dev]"
|
85
|
-
|
86
|
-
# lint + format
|
87
|
-
ruff check .
|
88
|
-
black .
|
89
|
-
|
90
|
-
# type-check
|
91
|
-
mypy .
|
92
|
-
|
93
|
-
# tests
|
94
|
-
pytest
|
95
|
-
```
|
96
|
-
|
97
|
-
## Release
|
98
|
-
|
99
|
-
1. Update version in `pyproject.toml` and `src/wzrdbrain/__init__.py`.
|
100
|
-
2. Create a Git tag and GitHub Release, e.g. `v0.1.0`.
|
101
|
-
3. The release workflow will build and publish to PyPI via Trusted Publishing.
|
82
|
+
The list of tricks in this library is not comprehensive. Please create an issue and give us your suggestions of new tricks to be added.
|
102
83
|
|
103
|
-
##
|
84
|
+
## Contributing
|
104
85
|
|
105
|
-
|
106
|
-
- Categories: Use `categories()` to see available groups and restrict generation.
|
107
|
-
- Typing: This library ships `py.typed` for type checkers.
|
86
|
+
Contributions are welcome! Please see the [Contributing Guide](CONTRIBUTING.md) for details on how to set up your development environment, run tests, and submit changes.
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# wzrdbrain
|
2
|
+
|
3
|
+
A simple library to generate random trick combinations for wizard skating.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```bash
|
8
|
+
pip install wzrdbrain
|
9
|
+
```
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
```python
|
14
|
+
from wzrdbrain import generate_trick, generate_combo
|
15
|
+
|
16
|
+
# Generate a single trick as a list of its parts
|
17
|
+
print(generate_trick())
|
18
|
+
# Example output: ['front', 'open', 'lion']
|
19
|
+
|
20
|
+
# Generate a line of multiple tricks as formatted strings
|
21
|
+
print(generate_combo(3))
|
22
|
+
# Example output: ['front parallel', 'fakie toe press', 'forward 360']
|
23
|
+
```
|
24
|
+
|
25
|
+
## List of wizard skating tricks
|
26
|
+
|
27
|
+
The list of tricks in this library is not comprehensive. Please create an issue and give us your suggestions of new tricks to be added.
|
28
|
+
|
29
|
+
## Contributing
|
30
|
+
|
31
|
+
Contributions are welcome! Please see the [Contributing Guide](CONTRIBUTING.md) for details on how to set up your development environment, run tests, and submit changes.
|
wzrdbrain-0.1.0/CONTRIBUTING.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# Contributing
|
2
|
-
|
3
|
-
Thanks for your interest in contributing to wzrdbrain!
|
4
|
-
|
5
|
-
- Discuss major changes in an issue before opening a PR.
|
6
|
-
- Keep the public API minimal, well-documented, and typed.
|
7
|
-
- Run `ruff`, `black`, `mypy`, and `pytest` locally before pushing.
|
8
|
-
- Add or update tests for behavior changes.
|
9
|
-
|
10
|
-
## Dev setup
|
11
|
-
|
12
|
-
```bash
|
13
|
-
python -m venv .venv
|
14
|
-
source .venv/bin/activate
|
15
|
-
pip install -e ".[dev]"
|
16
|
-
```
|
17
|
-
|
18
|
-
## Commit style
|
19
|
-
|
20
|
-
- Use clear, concise messages (e.g., `feat: add X`, `fix: correct Y`).
|
21
|
-
- Prefer small, focused PRs.
|
wzrdbrain-0.1.0/README.md
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
# wzrdbrain
|
2
|
-
|
3
|
-
Basic APIs to generate tricks for wizard skating.
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
```bash
|
8
|
-
pip install wzrdbrain
|
9
|
-
```
|
10
|
-
|
11
|
-
## Usage
|
12
|
-
|
13
|
-
```python
|
14
|
-
from wzrdbrain import generate_trick, generate_tricks
|
15
|
-
|
16
|
-
# Single trick (random)
|
17
|
-
print(generate_trick()) # e.g., "Front Open Lion"
|
18
|
-
|
19
|
-
# Multiple tricks
|
20
|
-
print(generate_combo(5)) # Maximum of 5 tricks in a combo (duplicates allowed)
|
21
|
-
```
|
22
|
-
|
23
|
-
## Development
|
24
|
-
|
25
|
-
```bash
|
26
|
-
# clone your repo
|
27
|
-
python -m venv .venv
|
28
|
-
source .venv/bin/activate # on Windows: .venv\Scripts\activate
|
29
|
-
pip install -e ".[dev]"
|
30
|
-
|
31
|
-
# lint + format
|
32
|
-
ruff check .
|
33
|
-
black .
|
34
|
-
|
35
|
-
# type-check
|
36
|
-
mypy .
|
37
|
-
|
38
|
-
# tests
|
39
|
-
pytest
|
40
|
-
```
|
41
|
-
|
42
|
-
## Release
|
43
|
-
|
44
|
-
1. Update version in `pyproject.toml` and `src/wzrdbrain/__init__.py`.
|
45
|
-
2. Create a Git tag and GitHub Release, e.g. `v0.1.0`.
|
46
|
-
3. The release workflow will build and publish to PyPI via Trusted Publishing.
|
47
|
-
|
48
|
-
## Notes
|
49
|
-
|
50
|
-
- Reproducibility: Set `seed` to get the same result across runs.
|
51
|
-
- Categories: Use `categories()` to see available groups and restrict generation.
|
52
|
-
- Typing: This library ships `py.typed` for type checkers.
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|