Merge ~ines-almeida/txpkgupload:add-pre-commit-file into txpkgupload:master

Proposed by Ines Almeida
Status: Merged
Approved by: Ines Almeida
Approved revision: 1a05ddf938a9cb166803c51626ec7c23c041fe9b
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~ines-almeida/txpkgupload:add-pre-commit-file
Merge into: txpkgupload:master
Diff against target: 51 lines (+45/-0)
1 file modified
.pre-commit-config.yaml (+45/-0)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+445985@code.launchpad.net

Commit message

Add pre-commit-config file to repo

Description of the change

This is a copy of the pre-commit config file from launchpad's repo

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve
Revision history for this message
Ines Almeida (ines-almeida) wrote :

Thank you Colin, I addressed all the changes you suggested.

I should have copied a lighter pre-commit-config file from a repo more similar to txpkgupload. Next time I'll know what to look for in terms of changes to it!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
2new file mode 100644
3index 0000000..3ba6cc6
4--- /dev/null
5+++ b/.pre-commit-config.yaml
6@@ -0,0 +1,45 @@
7+# See https://pre-commit.com for more information
8+# See https://pre-commit.com/hooks.html for more hooks
9+repos:
10+- repo: https://github.com/pre-commit/pre-commit-hooks
11+ rev: v4.4.0
12+ hooks:
13+ - id: check-added-large-files
14+ - id: check-ast
15+ - id: check-merge-conflict
16+ - id: check-yaml
17+ - id: debug-statements
18+ - id: file-contents-sorter
19+ - id: no-commit-to-branch
20+- repo: https://github.com/asottile/pyupgrade
21+ rev: v3.3.1
22+ hooks:
23+ - id: pyupgrade
24+ args: [--keep-percent-format]
25+- repo: https://github.com/psf/black
26+ rev: 22.12.0
27+ hooks:
28+ - id: black
29+- repo: https://github.com/PyCQA/isort
30+ rev: 5.12.0
31+ hooks:
32+ - id: isort
33+ name: isort
34+ args: [--profile, black]
35+- repo: https://github.com/PyCQA/flake8
36+ # 6.0.0 drops support for `# type:` comments, which we need until we
37+ # upgrade to Python >= 3.6.
38+ rev: 5.0.4
39+ hooks:
40+ - id: flake8
41+ additional_dependencies:
42+ - flake8-absolute-import==1.0.0.1
43+- repo: https://github.com/shellcheck-py/shellcheck-py
44+ rev: v0.9.0.2
45+ hooks:
46+ - id: shellcheck
47+- repo: https://github.com/get-woke/woke
48+ rev: v0.19.0
49+ hooks:
50+ - id: woke-from-source
51+ files: ^doc/.*\.rst$

Subscribers

People subscribed via source and target branches

to all changes: