Skip to content

Commit

Permalink
Repository setup
Browse files Browse the repository at this point in the history
* Poetry setup
* gitignore file
* Initial CI workflow
  • Loading branch information
jherbel committed Apr 30, 2024
1 parent 328ff63 commit 9362e91
Show file tree
Hide file tree
Showing 6 changed files with 325 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: CI

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"

- run: python3 -m pip install poetry

- run: poetry install --with dev

- run: poetry run black --check ./

- run: poetry run isort --check-only ./

- run: poetry run mypy ./

- run: poetry run pylint checkmk_weblate_syncer/ tests/
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__
*.code-workspace
Empty file.
267 changes: 267 additions & 0 deletions poetry.lock

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

30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[tool.poetry]
name = "checkmk-weblate-syncer"
version = "0.1.0"
description = ""
authors = ["Joerg Herbel <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.12"

[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
mypy = "*"
black = "*"
isort = "*"
pylint = "*"

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

[tool.mypy]
strict = true

[tool.pylint.'MESSAGES CONTROL']
disable = "missing-docstring"

[tool.isort]
profile = "black"
Empty file added tests/__init__.py
Empty file.

0 comments on commit 9362e91

Please sign in to comment.