Skip to content

Commit

Permalink
chore: update cruft template
Browse files Browse the repository at this point in the history
  • Loading branch information
lyz-code committed Feb 13, 2023
1 parent 979329e commit 8b49323
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
@@ -1,6 +1,6 @@
{
"template": "git@github.com:lyz-code/cookiecutter-python-project.git",
"commit": "e2247dc1d557217a1c6f8b89f9355cb9be1c8238",
"commit": "d90d0e819e6e727489d6eade18f7d78ec5315c0f",
"context": {
"cookiecutter": {
"project_name": "Drode",
Expand Down
3 changes: 2 additions & 1 deletion Makefile
@@ -1,6 +1,7 @@
.DEFAULT_GOAL := test
isort = pdm run isort src tests setup.py
black = pdm run black --target-version py39 src tests
autoimport = pdm run autoimport src tests

.PHONY: install
install:
Expand Down Expand Up @@ -44,9 +45,9 @@ format:
@echo "- Formating the code -"
@echo "----------------------"

$(autoimport)
$(isort)
$(black)
autoimport .

@echo ""

Expand Down
1 change: 0 additions & 1 deletion src/drode/adapters/__init__.py
Expand Up @@ -2,5 +2,4 @@

from .drone import Drone, DroneConfigurationError


__all__ = ["Drone", "DroneConfigurationError"]
1 change: 0 additions & 1 deletion src/drode/adapters/aws.py
Expand Up @@ -8,7 +8,6 @@
from pydantic import BaseModel # noqa: E0611
from pydantic import Field


log = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion src/drode/adapters/drone.py
Expand Up @@ -7,7 +7,6 @@

import requests


log = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion src/drode/config.py
Expand Up @@ -10,7 +10,6 @@
from ruamel.yaml.parser import ParserError
from ruamel.yaml.scanner import ScannerError


# NOTE: We can't migrate to maison or goodconf as they only support read only
# interaction with the configuration, and we need to update it because we save the
# state in the config file, which is not that nice.
Expand Down
1 change: 0 additions & 1 deletion src/drode/entrypoints/__init__.py
Expand Up @@ -12,7 +12,6 @@
from ..adapters.aws import AWS
from ..config import Config, ConfigError


log = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion src/drode/entrypoints/cli.py
Expand Up @@ -15,7 +15,6 @@
from ..version import __version__
from . import load_aws, load_config, load_drone, load_logger


log = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion src/drode/services.py
Expand Up @@ -14,7 +14,6 @@
from .adapters.drone import DronePromoteError
from .config import Config, ConfigError


log = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion src/drode/version.py
Expand Up @@ -4,7 +4,6 @@
import sys
from textwrap import dedent


# Do not edit this line manually, let `make bump` do it.
__version__ = "1.3.0"

Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Expand Up @@ -10,7 +10,6 @@

from .fake_adapters import FakeAWS, FakeDrone


os.environ["DRONE_SERVER"] = "https://drone.url"
os.environ["DRONE_TOKEN"] = "drone_token"

Expand Down
1 change: 0 additions & 1 deletion tests/e2e/test_cli.py
Expand Up @@ -18,7 +18,6 @@

from ..factories import BuildInfoFactory


FakeDeps = Dict[str, Any]


Expand Down
1 change: 0 additions & 1 deletion tests/fake_adapters.py
Expand Up @@ -13,7 +13,6 @@

from .factories import BuildInfoFactory


log = logging.getLogger(__name__)


Expand Down

0 comments on commit 8b49323

Please sign in to comment.