add pre-commit configuration

This commit is contained in:
Aminda Suomalainen ⚧ 2023-03-05 11:10:40 +02:00
parent 94b3d788ac
commit 047afed62d
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 36 additions and 9 deletions

View File

@ -10,3 +10,7 @@ indent_size = tab
[*.{markdown,md}]
trim_trailing_whitespace = false
[*.{cff,yaml,yml}]
indent_style = space
indent_size = 2

23
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,23 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.6"
hooks:
- id: prettier
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.1"
hooks:
- id: editorconfig-checker
alias: ec

View File

@ -1,12 +1,12 @@
*[English](#pirates-in-the-fediverse)*
_[English](#pirates-in-the-fediverse)_
# Piraatit fediversumissa
*Muista kysyä lupa ennen yksityshenkilön listaamista!*
_Muista kysyä lupa ennen yksityshenkilön listaamista!_
* `eu.csv` - Euroopan Unionin organisaatioiden ja roolien tunnuksia
* `organizations.csv` - Piraattijärjestöjen tunnuksia
* `pirates.csv` - Yksittäisiä piraatteja
- `eu.csv` - Euroopan Unionin organisaatioiden ja roolien tunnuksia
- `organizations.csv` - Piraattijärjestöjen tunnuksia
- `pirates.csv` - Yksittäisiä piraatteja
## Käyttö
@ -16,11 +16,11 @@
# Pirates in the Fediverse
*Remember to ask for consent before listing individuals.*
_Remember to ask for consent before listing individuals._
* `eu.csv` - European Union organanizations and roles accounts
* `organizations.csv` - Accounts belonging to Pirate organizations
* `pirates.csv` - Individual pirates
- `eu.csv` - European Union organanizations and roles accounts
- `organizations.csv` - Accounts belonging to Pirate organizations
- `pirates.csv` - Individual pirates
## Usage