-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from tedivm/improvements
cli fixes, ruff, remote setup.cfg/setup.py, setuptools_scm
- Loading branch information
Showing
22 changed files
with
152 additions
and
858 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Ruff Validation | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
|
||
- name: Install Dependencies | ||
run: make install | ||
|
||
- name: Test Formatting | ||
run: make ruff_check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: pytest | ||
name: pytest | ||
entry: make pytest | ||
language: system | ||
pass_filenames: false | ||
- id: ruff | ||
name: ruff | ||
entry: make ruff_check | ||
language: system | ||
pass_filenames: false | ||
- id: black | ||
name: black | ||
entry: make black_check | ||
language: system | ||
pass_filenames: false | ||
- id: mypy | ||
name: mypy | ||
entry: make mypy_check | ||
language: system | ||
pass_filenames: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.11.1 | ||
3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,53 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0", "versioneer>=0.25"] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["setuptools>=67.0", "setuptools_scm[toml]>=7.1"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
skip = [".venv"] | ||
src_paths = ["quasiqueue", "tests"] | ||
|
||
[tool.black] | ||
exclude = ''' | ||
( | ||
/( | ||
\.eggs # exclude a few common directories in the | ||
| \.git # root of the project | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| \.env | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
) | ||
) | ||
''' | ||
[project] | ||
authors = [{"name" = "Robert Hafner"}] | ||
dependencies = [ | ||
"psutil", | ||
"pydantic~=2.0", | ||
"pydantic-settings", | ||
"typer>=0.9.0", | ||
] | ||
description = "A Simple High Performance Multiprocess Queue" | ||
dynamic = ["version"] | ||
license = {"file" = "LICENSE"} | ||
name = "quasiqueue" | ||
readme = {file = "README.md", content-type = "text/markdown"} | ||
requires-python = ">=3.10" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"build", | ||
"dapperdata", | ||
"glom", | ||
"mypy", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-pretty", | ||
"ruamel.yaml", | ||
"ruff", | ||
"toml-sort", | ||
"types-psutil", | ||
] | ||
|
||
[project.scripts] | ||
quasiqueue = "quasiqueue.cli:app" | ||
|
||
[tool.ruff] | ||
exclude = [".venv", "./quasiqueue/_version.py"] | ||
line-length = 120 | ||
target-version = ['py38', 'py39', 'py310', 'py311'] | ||
|
||
[tool.setuptools.dynamic] | ||
readme = {file = ["README.md"]} | ||
|
||
[tool.setuptools.package-data] | ||
quasiqueue = ["py.typed"] | ||
|
||
[tool.setuptools.packages] | ||
find = {} | ||
|
||
[tool.setuptools_scm] | ||
fallback_version = "0.0.0-dev" | ||
write_to = "quasiqueue/_version.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
from ._version import get_versions | ||
try: | ||
from . import _version | ||
|
||
__version__ = get_versions()["version"] | ||
del get_versions | ||
__version__ = _version.__version__ | ||
except: # noqa: E722 | ||
__version__ = "0.0.0-dev" | ||
|
||
from .runner import QueueRunner as QuasiQueue | ||
from .settings import Settings | ||
from .runner import QueueRunner as QuasiQueue # noqa: F401 | ||
from .settings import Settings # noqa: F401 |
Oops, something went wrong.