diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a87b3d..651e5b7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,13 @@ +exclude: ^data/(curated|raw)_data repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.0.1 hooks: - id: check-ast - types: [python] - id: check-json - types: [json] - id: check-toml - types: [toml] - id: check-xml - types: [xml] - id: check-yaml - types: [yaml] - id: end-of-file-fixer - id: check-merge-conflict - id: pretty-format-json @@ -21,13 +17,15 @@ repos: - id: trailing-whitespace args: - --markdown-linebreak-ext=md - - repo: https://github.com/timothycrosley/isort + - repo: https://github.com/golangci/golangci-lint + rev: v1.42.0 + hooks: + - id: golangci-lint + - repo: https://github.com/PyCQA/isort rev: 5.9.3 hooks: - id: isort - types: [python] - repo: https://github.com/psf/black rev: 21.7b0 hooks: - id: black - types: [python] diff --git a/data/insee_data.go b/data/insee_data.go index 5bf2b66..52b4168 100644 --- a/data/insee_data.go +++ b/data/insee_data.go @@ -153,7 +153,6 @@ func (insee InseeData) String() string { } line = fmt.Sprintf("Vous ĂȘtes %s %s, %s en %s probablement en %d.", one, insee.Gender, born, frenchMonth(insee.Month), insee.Year) result = append(result, line) - line = "" var zoneType string if insee.Foreign { zoneType = "ce pays"