Skip to content

Commit

Permalink
chore: change dep dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Saurav Sharma <[email protected]>
  • Loading branch information
iamsauravsharma committed Mar 25, 2024
1 parent 0db32f0 commit 5147072
Show file tree
Hide file tree
Showing 14 changed files with 529 additions and 154 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
version: 1.8.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Publish
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
version: 1.8.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions advent_of_code_py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
advent of code helper module. Provide CLI and library to submit and solve advent of
code problems easily.
"""

__version__ = "0.4.0"

from .initializer import Initializer
Expand Down
1 change: 1 addition & 0 deletions advent_of_code_py/cache_file.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module which performs cache file related operation stored over CACHE_DIR of OS"""

import importlib
import os
import time
Expand Down
1 change: 1 addition & 0 deletions advent_of_code_py/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Main CLI for advent-of-code helper tool"""

from typing import List

import click
Expand Down
1 change: 1 addition & 0 deletions advent_of_code_py/config_file.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to perform config file related operation"""

import json
import os
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions advent_of_code_py/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
initializer module which defines Initializer class for initializing advent of code
function runner
"""

from __future__ import annotations

import inspect
Expand Down
3 changes: 2 additions & 1 deletion advent_of_code_py/puzzle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""module used for defining puzzle decorator for submitting or solving problem"""

from enum import Enum
from typing import Callable, List, Optional, TypeVar

Expand Down Expand Up @@ -76,7 +77,7 @@ def __call__(self, input: Optional[str] = None):
self.day,
self.part,
answer,
"\u274C",
"\u274c",
message,
)
)
Expand Down
1 change: 1 addition & 0 deletions advent_of_code_py/runner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Advent of code runner for creating CLI for solution for easy execution"""

import click


Expand Down
1 change: 1 addition & 0 deletions advent_of_code_py/server_action.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""module which performs server related actions such as submitting and downloading"""

import requests

from .cache_file import (
Expand Down
1 change: 1 addition & 0 deletions advent_of_code_py/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""utility module used to find latest year and day for advent of code problems"""

import datetime

from pytz import timezone
Expand Down
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

@session(python=python_versions)
def lint(session: Session):
session.install("black", "isort", "safety", "pytest", ".")
session.run("black", ".", "--check")
session.run("isort", ".", "--check-only")
session.install("ruff", "safety", "pytest", ".")
session.run("ruff", "check", ".")
session.run("ruff", "format", ".", "--check")
requirements_file = session.poetry.export_requirements()
session.run("safety", "check", "-r", str(requirements_file))
session.run("pytest")
635 changes: 501 additions & 134 deletions poetry.lock

Large diffs are not rendered by default.

25 changes: 12 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.isort]
profile = "black"

[tool.poetry]
name = "advent-of-code-py"
version = "0.4.0"
Expand All @@ -28,15 +21,21 @@ classifiers = [
python = "^3.8"
click = "^8.0"
requests = "^2.22.0"
pytz = "^2022.7.1"
platformdirs = "^3.0.0"
pytz = "^2024.1"
platformdirs = "^4.0.0"

[tool.poetry.group.dev.dependencies]
black = "^23.1.0"
isort = "^5.5.4"
safety = "^2.2.0"
safety = "^3.0.0"
nox-poetry = "^1.0.0"
pytest = "^7.0.0"
pytest = "^8.0.0"
ruff = "^0.3.4"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
advent-of-code-py = "advent_of_code_py.cli:main"

[tool.ruff.lint]
select = ["I"]

0 comments on commit 5147072

Please sign in to comment.