Skip to content

Commit

Permalink
Merge pull request #1 from nerc-project/add-initial-workflows
Browse files Browse the repository at this point in the history
Add pre-commit config and workflow
  • Loading branch information
aabaris authored Sep 5, 2024
2 parents d940472 + 9b7a9a6 commit 23de4fd
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: pre-commit

on:
pull_request:
push:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: pre-commit/[email protected]
70 changes: 70 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Pulled from Puppet 3 #
########################
.ruby-version
*.swp
.buildpath
.project
.vagrant/
Gemfile.lock
.pydevproject
.gems
.rbenv-gemsets
.settings*
# vim
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
*~

# Editor #
########################
*.code-workspace

# gem lock file
Gemfile.lock

# rspec fixtures
spec/fixtures/*

# directories #
######################
modules/
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.11
hooks:
- id: remove-tabs

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-case-conflict
- id: detect-private-key

- id: check-yaml
args: [--allow-multiple-documents]

0 comments on commit 23de4fd

Please sign in to comment.