Skip to main content

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

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

Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hazbin_hotel-1.0.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hazbin_hotel-1.0.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file hazbin_hotel-1.0.1.tar.gz.

File metadata

  • Download URL: hazbin_hotel-1.0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hazbin_hotel-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7d4237768ba0193f4365d3c89e480d40bfc91b9978134622bc7e000317ebc0b7
MD5 28fda8e24aa59300d126a54aeaa3a724
BLAKE2b-256 2f68c3e259c678b660ae5099f3aa2f0f042fa319020947b35ebed1e99e57c25e

See more details on using hashes here.

File details

Details for the file hazbin_hotel-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: hazbin_hotel-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hazbin_hotel-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d5d650b94616c39b6560c1f2e53322411381662907d8aacecf59618522a6da1
MD5 257f3e1580eab2daeecf7e57c5c743b9
BLAKE2b-256 c664f0333fa6c47839d4d21f1f00418f636e58f41aa0333a6cebec899884a48f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page