Skip to content

Commit

Permalink
prepare 0.0.2 update (#7)
Browse files Browse the repository at this point in the history
* prepare 0.0.2 update

* swap order
  • Loading branch information
shapiromatron authored May 26, 2024
1 parent b8fb903 commit eb7af35
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev-enviro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
python-version: ["3.12"]
os: [ubuntu-22.04, windows-2022]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
python-version: ["3.12"]
os: ["ubuntu-22.04"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand All @@ -36,8 +36,13 @@ jobs:
- name: Build a wheel
run: |
make build
- name: loc
run: |
sudo apt-get install -y cloc
echo "# Lines of code report" >> $GITHUB_STEP_SUMMARY
make loc >> $GITHUB_STEP_SUMMARY
- name: Upload wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/*.whl
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# History

## v0.0.2 (2024-05-25)

* Switched to use [uv](https://pypi.org/project/uv/) for development
* Updated packages to latest versions

## v0.0.1 (2023-07-24)

* Initial release
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@ clean: ## Remove build artifacts
@rm -rf build/
@rm -rf dist/

loc: ## Lines of Code Report
@cloc \
--exclude-dir=venv \
--exclude-ext=json,yaml,svg,toml,ini \
--vcs=git \
--counted loc-files.txt \
--md \
.

lint: ## Check formatting issues
@ruff format . --check && ruff .
@ruff format . --check && ruff check .

format: ## Fix formatting issues (where possible)
@ruff format . && ruff . --fix --show-fixes
@ruff format . && ruff check . --fix --show-fixes

test: ## Run tests
@py.test
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ python -m venv venv --prompt pyscaffold
source venv/bin/activate # or venv\Scripts\activate on windows.

# install packages
python -m pip install -U pip
python -m pip install -e ".[dev]"
python -m pip install -U pip uv
uv pip install -e ".[dev]"

# test local install
pyscaffold hello
Expand Down
4 changes: 2 additions & 2 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ echo. build Build python wheel package
goto :eof

:lint
ruff format . --check && ruff .
ruff format . --check && ruff check .
goto :eof

:format
ruff format . && ruff . --fix --show-fixes
ruff format . && ruff check . --fix --show-fixes
goto :eof

:test
Expand Down
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ dependencies = [
[project.optional-dependencies]
dev = [
"flit~=3.9.0",
"coverage~=7.3.2",
"pytest~=7.4.2",
"ruff~=0.1.3",
"coverage~=7.5.1",
"pytest~=8.2.1",
"ruff~=0.4.5",
]

[project.urls]
Expand All @@ -40,14 +40,14 @@ pyscaffold = "pyscaffold.cli:app"
[tool.ruff]
line-length = 100
target-version = "py311"

[tool.ruff.lint]
select = ["F", "E", "W", "I", "UP", "S", "B", "T20", "RUF"]
ignore = ["E501", "B904", "B007", "S308", "S113", "S314"]
unfixable = ["F401", "F841"]
isort.known-first-party = ["pyscaffold"]

[tool.ruff.isort]
known-first-party = ["pyscaffold"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"test_*.py" = ["S101", "S106"]

[tool.pytest.ini_options]
Expand Down
2 changes: 1 addition & 1 deletion src/pyscaffold/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""The pyscaffold project is your entrypoint into simple python packages"""

__version__ = "0.0.1"
__version__ = "0.0.2"

0 comments on commit eb7af35

Please sign in to comment.