Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowXBoss696 committed May 23, 2024
1 parent 0de9a3f commit 7c4e04e
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 112 deletions.
11 changes: 0 additions & 11 deletions fastboot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
# Copyright (c) 2024 Arpan Mahanty
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.

from ._version import __version__ as __version__
11 changes: 0 additions & 11 deletions fastboot/__main__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# Copyright (c) 2024 Arpan Mahanty
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.

import fastboot

if __name__ == "__main__":
Expand Down
11 changes: 0 additions & 11 deletions fastboot/_version.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# Copyright (c) 2024 Arpan Mahanty
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.

import importlib.metadata
import pathlib
import tomllib
Expand Down
11 changes: 0 additions & 11 deletions fastboot/config.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# Copyright (c) 2024 Arpan Mahanty
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.

import os
from abc import ABCMeta
from collections.abc import Callable
Expand Down
11 changes: 0 additions & 11 deletions fastboot/logging.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# Copyright (c) 2024 Arpan Mahanty
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.

from logging.config import dictConfig, fileConfig
from os import path
from typing import Any
Expand Down
10 changes: 0 additions & 10 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
# Copyright (c) 2024 Arpan Mahanty
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
11 changes: 0 additions & 11 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# Copyright (c) 2024 Arpan Mahanty
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.

import math
import textwrap

Expand Down
11 changes: 0 additions & 11 deletions tests/test_logging.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# Copyright (c) 2024 Arpan Mahanty
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.

import logging
import uuid

Expand Down
17 changes: 3 additions & 14 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
# Copyright (c) 2024 Arpan Mahanty
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.

import re

import fastboot
from fastboot import __version__ as version

SEMANTIC_VERSION_REGEX: re.Pattern[str] = re.compile(
"^([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$"
Expand All @@ -20,10 +9,10 @@

def test_version_info_available() -> None:
# Checks if the version string is defined
assert fastboot.version is not None, "Missing application version information"
assert version is not None, "Missing application version information"


def test_version_info_follows_semantic_version_spec() -> None:
# Checks if the version string follows semantic versioning
follows_semver_spec: bool = SEMANTIC_VERSION_REGEX.match(fastboot.version) is not None
follows_semver_spec: bool = SEMANTIC_VERSION_REGEX.match(version) is not None
assert follows_semver_spec, "Application version number does not follow the semantic version specification"
11 changes: 0 additions & 11 deletions tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# Copyright (c) 2024 Arpan Mahanty
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.
#
# This file is part of FastBoot released under the MIT license.
# See the LICENSE for more information.

import os
from collections.abc import Generator
from contextlib import contextmanager
Expand Down

0 comments on commit 7c4e04e

Please sign in to comment.