Skip to content

Commit

Permalink
dependencies updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkersigirci committed Jan 5, 2025
1 parent aec2d5f commit 62a2027
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 143 deletions.
28 changes: 1 addition & 27 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DOCKER_IMAGE=podflix
DOCKER_TARGET=development


.PHONY: help install test clean build publish doc pre-commit format lint profile
.PHONY: help install test doc pre-commit format lint profile
.DEFAULT_GOAL=help

help:
Expand Down Expand Up @@ -98,17 +98,6 @@ test-docs: ## Test documentation examples with doctest
test: clean-test test-all ## Cleans and runs all tests
test-parallel: clean-test test-all-parallel ## Cleans and runs all tests with parallelization

clean-build: ## Clean build dist and egg directories left after install
rm -rf ./build ./dist */*.egg-info *.egg-info
rm -rf ./pytest_cache
rm -rf ./junit
find . -type f -iname "*.so" -delete
find . -type f -iname '*.pyc' -delete
find . -type d -name '*.egg-info' -prune -exec rm -rf {} \;
find . -type d -name '__pycache__' -prune -exec rm -rf {} \;
find . -type d -name '.ruff_cache' -prune -exec rm -rf {} \;
find . -type d -name '.mypy_cache' -prune -exec rm -rf {} \;

clean-test: ## Clean test related files left after test
# rm -rf ./htmlcov
# rm -rf ./coverage.xml
Expand All @@ -118,21 +107,6 @@ clean-test: ## Clean test related files left after test
find ${TEST_DIR} -type d -name 'htmlcov' -exec rm -r {} +
find . -type d -name '.pytest_cache' -prune -exec rm -rf {} \;

clean: clean-build clean-test ## Cleans build and test related files

build: ## Make Python source distribution
$(MAKE) clean-build
uv build --sdist --out-dir dist

build-wheel: ## Make Python wheel distribution
$(MAKE) clean-build
uv build --wheel --out-dir dist

publish: ## Builds the project and publish the package to Pypi
# $(MAKE) build
uv publish dist/*
# uv publish --publish-url https://test.pypi.org/legacy/ --username DUMMY --password DUMMY dist/*

doc: ## Build documentation with mkdocs
uv run mkdocs build

Expand Down
21 changes: 12 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ default-groups = ["dev", "doc", "test"]

[tool.pytest.ini_options]
minversion = "7.0.0"
asyncio_mode = "auto"

# TODO: Make them inherit from yaml file
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)-20s :: %(name)-8s :: %(levelname)-8s :: %(filename)s:%(lineno)d - (%(funcName)s) :: %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"

testpaths = ["tests"]

addopts = [
"--import-mode=importlib",
"--color=yes",
Expand All @@ -66,14 +76,6 @@ addopts = [
# "--cov-report html",
]

testpaths = ["tests"]

# TODO: Make them inherit from yaml file
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)-20s :: %(name)-8s :: %(levelname)-8s :: %(filename)s:%(lineno)d - (%(funcName)s) :: %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"

[tool.ruff]
# target-version = "py311"
line-length = 88
Expand All @@ -83,7 +85,7 @@ respect-gitignore = true

extend-exclude = [
"docs",
"tests",
# "tests",
]

# [tool.ruff.flake8-quotes]
Expand Down Expand Up @@ -202,4 +204,5 @@ test = [
"pytest>=8.3.3",
# "pytest-timeout",
"pytest-asyncio>=0.25.1",
"moto[s3]>=5.0.25",
]
Loading

0 comments on commit 62a2027

Please sign in to comment.