Skip to content

Commit

Permalink
more ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Feb 28, 2025
1 parent 8e166c5 commit 88c43ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
python3 -m pip install ".[tests]"
# TODO -- build CI-ready tests
# TODO -- build CI-ready unit tests

lint:
name: lint
Expand All @@ -36,12 +36,14 @@ jobs:
run: python3 -m pip install ".[dev]"

- name: Check style
run: python3 -m flake8
run: python3 -m flake8 src tests

precommit_hooks:
runs-on: ubuntu-latest
strategy:
matrix:
- cmd: "check-ast"
- cmd: "debug-statements"
- cmd: "end-of-file-fixer"
- cmd: "trailing-whitespace"
- cmd: "mixed-line-ending"
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: end-of-file-fixer #Makes sure files end in a newline and only a newline
- id: trailing-whitespace
- id: mixed-line-ending

args: [ --fix=lf ]
- repo: local
hooks:
- id: run_tests
Expand All @@ -33,3 +33,4 @@ repos:
# language: system
# types: [python]
# exclude: ^venv/ ^.git/ ^.vscode/ ^.DS_Store
minimum_pre_commit_version: 4.0.1
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ tests = [
]
dev = [
"flake8",
"pre-commit",
"black",
"pre-commit>=4.0.1",
]

[project.urls]
Expand Down Expand Up @@ -72,4 +72,4 @@ vrs_anvil_toolkit = ["**/*.yaml"]
[tool.setuptools_scm]

[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning"]
filterwarnings = ["ignore::DeprecationWarning"]

0 comments on commit 88c43ba

Please sign in to comment.