Skip to content

Commit

Permalink
Add REUSE pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Aug 1, 2023
1 parent 07d5fd8 commit 3385c3c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ repos:
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/fsfe/reuse-tool
rev: v2.1.0
hooks:
- id: reuse
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2023 Joonas Rautiola <[email protected]>
# SPDX-License-Identifier: MPL-2.0
# https://git.joinemm.dev/miso-bot

[tool.black]
line-length = 88
exclude = '''
Expand Down
4 changes: 4 additions & 0 deletions update-deps
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

# SPDX-FileCopyrightText: 2023 Joonas Rautiola <[email protected]>
# SPDX-License-Identifier: MPL-2.0
# https://git.joinemm.dev/miso-bot

pip-compile requirements.in > requirements.txt --resolver=backtracking
pip-compile dev-requirements.in > dev-requirements.txt --resolver=backtracking

0 comments on commit 3385c3c

Please sign in to comment.