No project description provided
Project description
Seminar of Software Engineer
Basic project that implement tests with Pytest and poetry dependence manager into a hotel reservation system.
Team
- Pedro Luis
- Arthur Bueno
- Pedro Augusto
- Marcos Henrique
Requirements
- Chrome extension to view mermaid diagrams: Mermaid Previewer
- Python 3.12
Architecture
classDiagram
class Room {
- int number
- string type
- float price
- float multiplier_factor_price
- list~Schedule~ schedules
+ get_number() int
+ get_type() string
+ get_room_price() float
+ update_schedule() bool
+ update_price(new_price: float) bool
+ add_schedule(schedule: Schedule) bool
+ is_period_available(period: Period) bool
}
class Schedule {
- int id
- string client_name
- Room room
- Period period
+ get_client_name() string
+ get_room() Room
}
class Period {
- Date start
- Date end
+ change_start() bool
+ change_end() bool
}
Room "1" <-- "*" Schedule : "associates with"
Schedule "*" --> "1" Period
Code Quality
Linter
The project uses flake8 as linter. To run the linter in all code, execute the following command:
flake8 .
If the linter find a problem, it will show a message with the error.
./src/Schedule.py:13:3: E303 too many blank lines (2)
./src/Schedule.py:20:1: W391 blank line at end of file
Fixing the error manually and when finish, flake8 will not show any message.
Formatter
The project uses black as formatter. To run the formatter in all code, execute the following command:
black .
Sorting Imports
The project uses isort as sorting imports. To run the sorting imports in all code, execute the following command:
isort .
Resume
- Black: A code formatter that applies consistent style across your code automatically.
- isort: Organizes and sorts imports to keep them clean and PEP 8-compliant.
- Flake8: A linter that checks for syntax errors, potential bugs, and style violations.
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hazbin_hotel-0.0.1.tar.gz.
File metadata
- Download URL: hazbin_hotel-0.0.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13da64ba08498e5b9f7418d1eb7b506b7842937376af92515ebd542d0ede23db
|
|
| MD5 |
15fe970c2618271b3999aee683809b99
|
|
| BLAKE2b-256 |
41d03fc06c01570c47475c5fcadc291fb89628d31b1372a71eb5ad8163b5c147
|
File details
Details for the file hazbin_hotel-0.0.1-py3-none-any.whl.
File metadata
- Download URL: hazbin_hotel-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e6a4735f89e099b6960b43d773788da057a27142c075893632b3a361bb66d30
|
|
| MD5 |
873a8e7793e89243004ffeaff7b5bae8
|
|
| BLAKE2b-256 |
41fa640320b29adb57e16fcbe17cc7f1ad63e7e9acaa93ae8cfe9a7f0788baeb
|