Skip to content

Small cleanup in pyproject.toml #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ requires = [
[project]
authors = [{"email" = "bthornto@redhat.com", "name" = "Bradley A. Thornton"}]
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
Expand All @@ -26,7 +26,7 @@ description = "A pip-like ansible collection installer."
dynamic = ["dependencies", "optional-dependencies", "version"]
keywords = ["ansible"]
license = {text = "GPL-3.0-only"}
maintainers = [{"email" = "bthornto@redhat.com", "name" = "Bradley Thornton"}]
maintainers = [{"email" = "info@ansible.com", "name" = "Ansible by Red Hat"}]
name = "ansible-dev-environment"
readme = "README.md"
requires-python = ">=3.10"
Expand All @@ -41,21 +41,19 @@ homepage = "https://github.com/ansible/ansible-dev-environment"
repository = "https://github.com/ansible/ansible-dev-environment"

[tool.coverage.report]
ignore_errors = true
exclude_lines = ["if TYPE_CHECKING:", "pragma: no cover"]
fail_under = 72
ignore_errors = true
show_missing = true
skip_covered = true
skip_empty = true
sort = "Cover"

[tool.coverage.run]
source_pkgs = ["ansible_dev_environment"]
# Do not use branch until bug is fixes:
# https://github.com/nedbat/coveragepy/issues/605
# branch = true
parallel = true
branch = false # https://github.com/nedbat/coveragepy/issues/605
concurrency = ["multiprocessing", "thread"]
parallel = true
source_pkgs = ["ansible_dev_environment"]

[tool.mypy]
files = ["src", "tests"]
Expand Down Expand Up @@ -320,13 +318,8 @@ lines-after-imports = 2 # Ensures consistency for cases when there's variable vs
lines-between-types = 1 # Separate import/from with 1 line

[tool.ruff.lint.per-file-ignores]
# SLF001: Allow private member access in tests
# S101 Allow assert in tests
# S602 Allow shell in test
# T201 Allow print in tests
"tests/**" = ["SLF001", "S101", "S602", "T201"]
# SIM108, file is generated
"_version.py" = ["SIM108"]
"tests/**" = ["SLF001", "S101", "S602", "T201"]

[tool.ruff.lint.pydocstyle]
convention = "google"
Expand All @@ -348,8 +341,9 @@ git_describe_command = [
"v*.*"
]
local_scheme = "no-local-version"
tag_regex = '^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$'
write_to = "src/ansible_dev_environment/_version.py"

[tool.tomlsort]
in_place = true
sort_inline_tables = true
sort_table_keys = true
Loading