Skip to content

Commit

Permalink
Move from poetry to uv (#105)
Browse files Browse the repository at this point in the history
* Move from poetry to uv

* Fix renovate to match uv

* sync uv

* Fix tox and move to tox.toml file
  • Loading branch information
myakove authored Dec 31, 2024
1 parent bf80a27 commit c0f3d37
Show file tree
Hide file tree
Showing 11 changed files with 452 additions and 495 deletions.
36 changes: 22 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
default_language_version:
python: python3
python: python3

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md] # Do not process Markdown files.
- id: end-of-file-fixer
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-toml
- id: check-merge-conflict
- id: debug-statements
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md] # Do not process Markdown files.
- id: end-of-file-fixer
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-toml

- repo: https://github.com/PyCQA/flake8
rev: "7.1.1"
hooks:
- id: flake8
args: [--config=.flake8]
additional_dependencies: [
"git+https://github.com/RedHatQE/flake8-plugins.git@v0.0.2",
"flake8-mutable",
]
additional_dependencies:
[
"git+https://github.com/RedHatQE/flake8-plugins.git@v0.0.2",
"flake8-mutable",
]

- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
Expand All @@ -35,3 +36,10 @@ repos:
hooks:
- id: ruff
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.0
hooks:
- id: mypy
exclude: (tests/)
additional_dependencies: []
11 changes: 6 additions & 5 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
"tagAnnotation": "Release ${version}",
"tagArgs": [],
"push": true,
"pushArgs": [
"--follow-tags"
],
"pushArgs": ["--follow-tags"],
"pushRepo": "",
"changelog": "git log --pretty=format:\"* %s (%h) by %cn on %as\" ${from}...${to}"
},
Expand All @@ -40,8 +38,11 @@
},
"plugins": {
"@release-it/bumper": {
"in": "VERSION",
"out": "VERSION"
"in": "pyproject.toml",
"out": { "file": "pyproject.toml", "path": "project.version" }
}
},
"hooks": {
"after:bump": "uv sync"
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Utility class for waiting to any function output and interact with it in given t
## Installation

```bash
pip3 install timeout-sampler
python3 -m pip install timeout-sampler
```

## Usage
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

Loading

0 comments on commit c0f3d37

Please sign in to comment.