Add basic python environment and precommit
This commit is contained in:
parent
780ccb4d51
commit
30200f082e
47
.pre-commit-config.yaml
Normal file
47
.pre-commit-config.yaml
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
---
|
||||||
|
repos:
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
name: Fix whitespace at EOF
|
||||||
|
entry: end-of-file-fixer
|
||||||
|
language: system
|
||||||
|
types:
|
||||||
|
- text
|
||||||
|
|
||||||
|
- id: trailing-whitespace-fixer
|
||||||
|
name: Fix trailing line whitespace
|
||||||
|
entry: trailing-whitespace-fixer
|
||||||
|
language: system
|
||||||
|
types:
|
||||||
|
- text
|
||||||
|
|
||||||
|
- id: black
|
||||||
|
name: Enforce python formatting
|
||||||
|
entry: black
|
||||||
|
language: system
|
||||||
|
types:
|
||||||
|
- python
|
||||||
|
|
||||||
|
- id: check-toml
|
||||||
|
name: Check TOML file syntax
|
||||||
|
entry: check-toml
|
||||||
|
language: system
|
||||||
|
types:
|
||||||
|
- toml
|
||||||
|
|
||||||
|
- id: check-yaml
|
||||||
|
name: Check YAML file syntax
|
||||||
|
entry: check-yaml
|
||||||
|
language: system
|
||||||
|
args:
|
||||||
|
- "--unsafe"
|
||||||
|
types:
|
||||||
|
- yaml
|
||||||
|
|
||||||
|
- id: check-merge-conflict
|
||||||
|
name: Check for unresolved git conflicts
|
||||||
|
entry: check-merge-conflict
|
||||||
|
language: system
|
||||||
|
types:
|
||||||
|
- text
|
1023
poetry.lock
generated
Normal file
1023
poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
25
pyproject.toml
Normal file
25
pyproject.toml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
[tool.poetry]
|
||||||
|
name = "semaphore-runner"
|
||||||
|
package-mode = false
|
||||||
|
description = "Custom runner for semaphore"
|
||||||
|
authors = ["Ethan Paul <admin@enp.one>"]
|
||||||
|
license = "MIT"
|
||||||
|
readme = "README.md"
|
||||||
|
|
||||||
|
[tool.poetry.dependencies]
|
||||||
|
python = "^3.11"
|
||||||
|
ansible-core = "^2.16.4"
|
||||||
|
docker = "^7.0.0"
|
||||||
|
paramiko = "^3.4.0"
|
||||||
|
|
||||||
|
|
||||||
|
[tool.poetry.group.dev.dependencies]
|
||||||
|
black = "^24.2.0"
|
||||||
|
reorder-python-imports = "^3.12.0"
|
||||||
|
pylint = "^3.1.0"
|
||||||
|
pre-commit = "^3.6.2"
|
||||||
|
pre-commit-hooks = "^4.5.0"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["poetry-core"]
|
||||||
|
build-backend = "poetry.core.masonry.api"
|
Loading…
Reference in New Issue
Block a user