diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..11f16d2 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,49 @@ +repos: + - repo: local + hooks: + - id: cargo-fmt + name: cargo fmt + entry: cargo fmt --all -- --check + language: system + types: [rust] + pass_filenames: false + + - id: cargo-check + name: cargo check + entry: cargo check --all + language: system + types: [rust] + pass_filenames: false + + - id: cargo-clippy + name: cargo clippy + entry: cargo clippy --all-targets --all-features -- -D warnings + language: system + types: [rust] + pass_filenames: false + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: trailing-whitespace + name: Fix trailing whitespace + - id: end-of-file-fixer + name: Fix end of file + - id: check-yaml + name: Check YAML syntax + - id: check-toml + name: Check TOML syntax + - id: check-json + name: Check JSON syntax + - id: check-merge-conflict + name: Check for merge conflict markers + - id: check-added-large-files + name: Check for large files + args: ['--maxkb=500'] + - id: mixed-line-ending + name: Check for mixed line endings + args: ['--fix=lf'] + - id: check-case-conflict + name: Check for case conflicts + - id: check-symlinks + name: Check for broken symlinks diff --git a/notes.txt b/notes.txt deleted file mode 100644 index 4766e61..0000000 --- a/notes.txt +++ /dev/null @@ -1,3 +0,0 @@ -todo: -* First step is to set up data structures and ability to simulate game -* Figure out how to handle pregame state (card passing)