-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bbb31db
Showing
20 changed files
with
876 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.7' | ||
- name: Install pipenv | ||
run: pip install --no-cache-dir pipenv | ||
- name: Install dev dependencies | ||
run: pipenv install --dev --deploy --ignore-pipfile | ||
- name: Run pre-commit | ||
run: pipenv run pre-commit run --show-diff-on-failure --color=always | ||
- name: Run tests | ||
run: pipenv run pytest -vv |
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 @@ | ||
# Python specific | ||
*.egg-info/ | ||
*.pyc | ||
__pycache__/ | ||
.pytest_cache/ | ||
.ruff_cache/ | ||
|
||
# Environment | ||
.env | ||
|
||
# Dependencies | ||
venv/ | ||
|
||
# Other files | ||
.DS_STORE | ||
|
||
# IDE | ||
.vscode/ |
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,27 @@ | ||
default_install_hook_types: [pre-commit] | ||
default_stages: [commit] | ||
|
||
repos: | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
name: Remove trailing whitespace | ||
- id: end-of-file-fixer | ||
name: Ensure files end with a newline character | ||
- id: mixed-line-ending | ||
name: Align mixed line ending | ||
- id: check-added-large-files | ||
name: Check for large files | ||
- id: check-yaml | ||
name: Check YAML files are valid and parseable | ||
- id: check-toml | ||
name: Check TOML files are valid and parseable | ||
- id: check-ast | ||
name: Validate Python | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.2 | ||
hooks: | ||
- id: ruff |
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,9 @@ | ||
- id: feefifofum | ||
name: Feature file formatter | ||
entry: feefifofum | ||
language: python | ||
files: ^.*\.(feature)$ | ||
verbose: true | ||
pass_filenames: true | ||
require_serial: true | ||
description: Formats feature files. |
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,14 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
|
||
[dev-packages] | ||
pre-commit = "2.21.0" | ||
pytest-cov = "4.1.0" | ||
ruff = "0.6.2" | ||
|
||
[requires] | ||
python_version = "3.7" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.