Skip to content

Commit

Permalink
Initial project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rushwerks committed Aug 27, 2024
0 parents commit bbb31db
Show file tree
Hide file tree
Showing 20 changed files with 876 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/tests.yaml
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
18 changes: 18 additions & 0 deletions .gitignore
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/
27 changes: 27 additions & 0 deletions .pre-commit-config.yaml
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
9 changes: 9 additions & 0 deletions .pre-commit-hooks.yaml
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.
14 changes: 14 additions & 0 deletions Pipfile
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"
266 changes: 266 additions & 0 deletions Pipfile.lock

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

Loading

0 comments on commit bbb31db

Please sign in to comment.