Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ops updates #5

Merged
merged 5 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ jobs:
run: poetry install --no-interaction

- name: Run pre-commit
run: poetry run pre-commit
run: >-
if [[ $GITHUB_REF == refs/heads/main ]]; then
SKIP=no-commit-to-branch poetry run pre-commit run --all-files
else
poetry run pre-commit run --all-files
fi

- name: Run tests
env:
COVERAGE_FILE: .coverage.${{ matrix.python-version }}
Expand Down
13 changes: 8 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---
repos:
- repo: https://github.com/python-poetry/poetry
rev: 1.8.3
hooks:
- id: poetry-check
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
Expand All @@ -14,11 +18,10 @@ repos:
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii]
- id: trailing-whitespace
- repo: https://github.com/python-poetry/poetry
rev: 1.8.3
- repo: https://github.com/facebook/usort
rev: v1.0.8
hooks:
- id: poetry-check
- id: poetry-lock
- id: usort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
Expand All @@ -29,7 +32,7 @@ repos:
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==24.4.26
- flake8-bugbear == 24.4.26
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
15 changes: 2 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,23 @@ classifiers = [
]

[tool.poetry.dependencies]
python = "^3.9,!=3.9.7"
python = ">=3.9,!=3.9.7,<3.13"
streamlit = "^1.35.0"

[tool.poetry.group.dev.dependencies]
pre-commit = "^3.7.1"
pytest = "^8.2.1"
pytest-cov = "^5.0.0"

[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-ra -q"
pythonpath = ["src"]
filterwarnings = [
"error", # treat all warnings as errors
"ignore:.*custom tp_new.*in Python 3.14.*:DeprecationWarning",
]

[tool.coverage.run]
relative_files = true
source = [
Expand Down
Loading