Compare commits
56 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a7d4144c6 | |||
| 78595e8a3f | |||
| 13eded6109 | |||
| ffae41aaae | |||
| 89a91f94ea | |||
| 23272a0c61 | |||
| ab9764ad39 | |||
| a0043eaa21 | |||
| 5b68bcb9f8 | |||
| b0758dc186 | |||
| b254245b0f | |||
| 78ad849b39 | |||
| 6bb2e344f5 | |||
| f276dfdb86 | |||
| 44fed6ecfa | |||
| f792ed0aab | |||
| 17e78707d0 | |||
| 7690164241 | |||
| 56589e970c | |||
| c9fe8a4441 | |||
| ff80ee20e1 | |||
| e85e6d306e | |||
| 2e2cdfbab3 | |||
| 9daceb969a | |||
| 65a9b429a0 | |||
| 7c80482f49 | |||
| f08765b598 | |||
| 203b42338f | |||
| f0b00b2229 | |||
| 7302fc6195 | |||
| ee39700035 | |||
| 44cca483dd | |||
| 3e56f68a2c | |||
| 7e4938bcae | |||
| 3162c13665 | |||
| 6f89cecc18 | |||
| 14ab23b9a6 | |||
| 5116c8ea0d | |||
| 3574964509 | |||
| 9027548b1a | |||
| a7756d74a4 | |||
| ffd606a24a | |||
| 4991d2b32f | |||
| fb85ebe28a | |||
| f8e0dfc9e3 | |||
| 9ddffa6a6e | |||
| c99cefbc2a | |||
| 92cc7a951a | |||
| edd3bfb41c | |||
| 9ada79340b | |||
| dae40757ad | |||
| e5284bb51a | |||
| 14a4656fd9 | |||
| 0cb1331700 | |||
| f377a52751 | |||
| 90daa46604 |
@@ -16,25 +16,19 @@ jobs:
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -e ".[dev]"
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
python -m pip install pytest pytest-cov
|
||||
python -m pip install -e .
|
||||
|
||||
- name: Run tests
|
||||
run: pytest tests/ -v --tb=short
|
||||
run: python -m pytest confsync/tests/ -v --tb=short
|
||||
|
||||
- name: Run linting
|
||||
run: ruff check .
|
||||
|
||||
- name: Check types
|
||||
run: mypy confsync/ --ignore-missing-imports
|
||||
|
||||
build:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -42,16 +36,27 @@ jobs:
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
pip install build
|
||||
python -m build
|
||||
- name: Install ruff
|
||||
run: python -m pip install ruff
|
||||
|
||||
- name: Create Release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
- name: Run ruff
|
||||
run: python -m ruff check .
|
||||
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
files: |
|
||||
dist/**
|
||||
draft: false
|
||||
prerelease: false
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
|
||||
- name: Install mypy
|
||||
run: python -m pip install mypy
|
||||
|
||||
- name: Run mypy
|
||||
run: python -m mypy confsync/ --ignore-missing-imports
|
||||
53
pyproject.toml
Normal file
53
pyproject.toml
Normal file
@@ -0,0 +1,53 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "confsync"
|
||||
version = "0.1.0"
|
||||
description = "Intelligent Developer Configuration Sync CLI"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.9"
|
||||
license = {text = "MIT"}
|
||||
authors = [
|
||||
{name = "ConfSync Contributors"}
|
||||
]
|
||||
dependencies = [
|
||||
"typer>=0.9.0",
|
||||
"pyyaml>=6.0",
|
||||
"gitpython>=3.1.0",
|
||||
"cryptography>=41.0.0",
|
||||
"pathlib2>=2.3.0",
|
||||
"rich>=13.0.0",
|
||||
"toml>=0.10.0",
|
||||
"configparser>=5.3.0",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest>=7.0.0",
|
||||
"pytest-cov>=4.0.0",
|
||||
"ruff>=0.1.0",
|
||||
"mypy>=1.0.0",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
confsync = "confsync.main:main"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["."]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
python_files = ["test_*.py"]
|
||||
python_functions = ["test_*"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
target-version = "py39"
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.9"
|
||||
warn_return_any = true
|
||||
warn_unused_configs = true
|
||||
ignore_missing_imports = true
|
||||
Reference in New Issue
Block a user