Skip to content

Commit f5a1b65

Browse files
Initial project: brain_games
1 parent 309dd90 commit f5a1b65

10 files changed

Lines changed: 104 additions & 1 deletion

File tree

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.egg-info
2+
__pycache__
3+
dist/
4+
*.pyc
5+
.venv
6+
.coverage
7+
coverage.xml
8+
*_cache/

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,46 @@
11
### Hexlet tests and linter status:
2-
[![Actions Status](https://github.com/UlianaPythonBackendDeveloper/python-project-49/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/UlianaPythonBackendDeveloper/python-project-49/actions)
2+
[![Actions Status](https://github.com/UlianaPythonBackendDeveloper/python-project-49/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/UlianaPythonBackendDeveloper/python-project-49/actions)
3+
4+
# python-package
5+
6+
[![Github Actions Status](https://github.com/hexlet-boilerplates/python-package/workflows/Python%20CI/badge.svg)](https://github.com/hexlet-boilerplates/python-package/actions)
7+
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=hexlet-boilerplates_python-package&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=hexlet-boilerplates_python-package)
8+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=hexlet-boilerplates_python-package&metric=coverage)](https://sonarcloud.io/summary/new_code?id=hexlet-boilerplates_python-package)
9+
10+
### Links
11+
12+
This project was built using these tools:
13+
14+
| Tool | Description |
15+
|------------------------------------------------------------------------|---------------------------------------------------------|
16+
| [uv](https://docs.astral.sh/uv/) | "An extremely fast Python package and project manager, written in Rust"
17+
| [Pytest](https://pytest.org) | "A mature full-featured Python testing tool" |
18+
| [ruff](https://docs.astral.sh/ruff/) | "An extremely fast Python linter and code formatter, written in Rust" |
19+
20+
---
21+
22+
### Setup
23+
24+
```bash
25+
make install
26+
```
27+
28+
### Examples
29+
30+
```bash
31+
uv run hexlet-python-package 5
32+
33+
2.5
34+
```
35+
36+
### Run tests
37+
38+
```bash
39+
make test
40+
```
41+
42+
[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=python-package)
43+
44+
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=python-package).
45+
46+
See most active contributors on [hexlet-friends](https://friends.hexlet.io/)

brain_games/__init__.py

Whitespace-only changes.

brain_games/scripts/__init__.py

Whitespace-only changes.

brain_games/scripts/brain_games.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def welcome_user():
2+
print("Welcome to the Brain Games!")
3+
4+
5+
def main():
6+
welcome_user()
7+
8+
if __name__ == '__main__':
9+
main()

hexlet-code.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[project]
2+
name = "python-project-49"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.13"
7+
dependencies = []
8+
9+
[build-system]
10+
requires = ["hatchling"]
11+
build-backend = "hatchling.build"
12+
13+
[tool.hatch.build.targets.wheel]
14+
packages = ["brain_games"]
15+
16+
[project.scripts]
17+
brain-games = "brain_games.scripts.brain_games:main"

main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def main():
2+
print("Hello from python-project-49!")
3+
4+
5+
if __name__ == "__main__":
6+
main()

makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
install:
2+
uv sync
3+
brain-games:
4+
uv run brain_games
5+
6+
build:
7+
uv build
8+
9+
package-install:
10+
uv tool install dist/*.whl

uv.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)