Add CI workflow and contribution guidelines

- GitHub Actions workflow for testing on Python 3.9-3.12
- Ruff linting in CI
- Coverage reporting to Codecov
- CONTRIBUTING.md with development setup instructions
- LICENSE file (MIT)
- Dev dependencies in pyproject.toml
This commit is contained in:
Tim Hadwen
2026-01-18 20:59:04 +10:00
parent 2477fd1539
commit b89456a7f7
4 changed files with 204 additions and 0 deletions

View File

@@ -42,6 +42,35 @@ include = ["inventree_rma_plugin*"]
"migrations/*",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"ruff",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.lint.isort]
known-first-party = ["inventree_rma_plugin"]