Skip to content

Commit 6a2ed33

Browse files
committed
Initial project setup
0 parents  commit 6a2ed33

20 files changed

+867
-0
lines changed

.github/workflows/tests.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
- name: Setup Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.7'
19+
- name: Install pipenv
20+
run: pip install --no-cache-dir pipenv
21+
- name: Install dev dependencies
22+
run: pipenv install --dev --deploy --ignore-pipfile
23+
- name: Run pre-commit
24+
run: pipenv run pre-commit run --show-diff-on-failure --color=always
25+
- name: Run tests
26+
run: pipenv run pytest -vv

.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Python specific
2+
*.egg-info/
3+
*.pyc
4+
__pycache__/
5+
.pytest_cache/
6+
.ruff_cache/
7+
8+
# Environment
9+
.env
10+
11+
# Dependencies
12+
venv/
13+
14+
# Other files
15+
.DS_STORE
16+
17+
# IDE
18+
.vscode/

.pre-commit-config.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
default_install_hook_types: [pre-commit]
2+
default_stages: [commit]
3+
4+
repos:
5+
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v4.4.0
8+
hooks:
9+
- id: trailing-whitespace
10+
name: Remove trailing whitespace
11+
- id: end-of-file-fixer
12+
name: Ensure files end with a newline character
13+
- id: mixed-line-ending
14+
name: Align mixed line ending
15+
- id: check-added-large-files
16+
name: Check for large files
17+
- id: check-yaml
18+
name: Check YAML files are valid and parseable
19+
- id: check-toml
20+
name: Check TOML files are valid and parseable
21+
- id: check-ast
22+
name: Validate Python
23+
24+
- repo: https://github.com/astral-sh/ruff-pre-commit
25+
rev: v0.6.2
26+
hooks:
27+
- id: ruff

.pre-commit-hooks.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- id: feefifofum
2+
name: Feature file formatter
3+
entry: feefifofum
4+
language: python
5+
files: ^.*\.(feature)$
6+
verbose: true
7+
pass_filenames: true
8+
require_serial: true
9+
description: Formats feature files.

Pipfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
8+
[dev-packages]
9+
pre-commit = "2.21.0"
10+
pytest-cov = "4.1.0"
11+
ruff = "0.6.2"
12+
13+
[requires]
14+
python_version = "3.7"

Pipfile.lock

+266
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)