Skip to content

Commit

Permalink
Add pre_commit
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Jan 24, 2022
1 parent 33f4323 commit b7fa8a8
Show file tree
Hide file tree
Showing 25 changed files with 611 additions and 608 deletions.
45 changes: 45 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
repos:
- repo: local
hooks:
#- id: check-yaml
#name: check-yaml
#entry: check-yaml
#language: python
#types: [yaml]
#stages: [commit]
- id: check-json
name: check-json
entry: check-json
language: python
types: [json]
stages: [commit]
- id: check-toml
name: check-toml
entry: check-toml
language: python
types: [toml]
stages: [commit]
- id: check-merge-conflict
name: check-merge-conflict
entry: check-merge-conflict
language: python
types: [text]
stages: [commit]
- id: mixed-line-ending
name: mixed-line-ending
entry: mixed-line-ending
language: python
types_or: [c, c++, python]
stages: [commit]
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
language: python
types_or: [c, c++, python]
stages: [commit]
- id: trailing-whitespace-fixer
name: trailing-whitespace-fixer
entry: trailing-whitespace-fixer
language: python
types_or: [c, c++, python]
stages: [commit]
2 changes: 0 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,3 @@

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True


1 change: 0 additions & 1 deletion flsemu/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,3 @@ FlsEmu_ModuleStateType * FlsEmu_GetModuleState(void)
{
return &FlsEmu_ModuleState;
}

1 change: 0 additions & 1 deletion flsemu/posix/flsemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,3 @@ void FlsEmu_SelectPage(uint8_t segmentIdx, uint8_t page)
}
*/
}

1 change: 0 additions & 1 deletion flsemu/win/flsemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,3 @@ static void MemoryInfo(void * address)

VirtualQuery(address, &info, sizeof(MEMORY_BASIC_INFORMATION));
}

0 comments on commit b7fa8a8

Please sign in to comment.