Skip to content

Commit

Permalink
build: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 committed Apr 24, 2024
1 parent 9e46455 commit d4c3202
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 67 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: poetry run pytest --cov-report=xml
shell: bash
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@ dmypy.json
# Cython debug symbols
cython_debug/

# Optional config file with router configuration for test script
# Optional config file for library_test.py script
library_test.json
2 changes: 1 addition & 1 deletion .idea/watcherTasks.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

114 changes: 57 additions & 57 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 21 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,30 @@ aiohttp = "*"
beautifulsoup4 = "*"

[tool.poetry.group.dev.dependencies]
pytest = ">=7,<9"
pytest-cov = ">=3,<6"
pytest = "^8.1"
pytest-cov = "^5.0"

[tool.semantic_release]
branch = "main"
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variable = ["src/aiovodafone/__init__.py:__version__"]
version_variables = ["src/aiovodafone/__init__.py:__version__",]
build_command = "pip install poetry && poetry build"

[tool.semantic_release.changelog]
exclude_commit_patterns = [
"chore*",
"ci*",
]

[tool.semantic_release.changelog.environment]
keep_trailing_newline = true

[tool.semantic_release.branches.main]
match = "main"

[tool.semantic_release.branches.noop]
match = "(?!main$)"
prerelease = true

[tool.pytest.ini_options]
addopts = "-v -Wdefault --cov=aiovodafone --cov-report=term-missing:skip-covered"
pythonpath = ["src"]
Expand All @@ -52,9 +67,8 @@ exclude_lines = [
'if __name__ == "__main__":',
]

[tool.isort]
profile = "black"
known_first_party = ["aiovodafone", "tests"]
[tool.ruff.isort]
known-first-party = ["aioamazondevices", "tests"]

[tool.mypy]
check_untyped_defs = true
Expand Down

0 comments on commit d4c3202

Please # to comment.