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.0.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.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hazbin_hotel-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 57049e9ff1eaa8a5d96ec84801d74c6c52379f2ae651f0891dae25f22985fd35
MD5 66d9c5fcb4bd80ec9a2a399f8efa2b4c
BLAKE2b-256 9432f529793c1d03e11a5cfd327eb8f50a10ef2586bab8149e083c1fe8eb0f59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hazbin_hotel-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3cb6d0c91fa4e63e94c96bccca66510b3ed946427c9e764e284aa39d9542eca
MD5 dfcde0bd7b345340bac33331fb9f8797
BLAKE2b-256 5ab0b213cabbc967847a667e54d5b0a30914ebf3f7144b7f3e72d58afebfaee0

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