File tree Expand file tree Collapse file tree 4 files changed +46
-2
lines changed Expand file tree Collapse file tree 4 files changed +46
-2
lines changed Original file line number Diff line number Diff line change 5
5
- repo : https://github.com/pre-commit/pre-commit-hooks
6
6
rev : " v4.5.0"
7
7
hooks :
8
+ - id : check-added-large-files
9
+ - id : check-docstring-first
10
+ - id : check-executables-have-shebangs
8
11
- id : check-merge-conflict
12
+ - id : check-symlinks
13
+ - id : check-yaml
14
+ args :
15
+ - " --allow-multiple-documents"
16
+ # https://github.com/pre-commit/pre-commit-hooks/issues/273
17
+ - " --unsafe"
18
+ - id : detect-private-key
19
+ - id : mixed-line-ending
9
20
- id : debug-statements
10
21
- id : trailing-whitespace
11
22
args : [--markdown-linebreak-ext=md] # Do not process Markdown files.
16
27
- id : check-toml
17
28
18
29
- repo : https://github.com/PyCQA/flake8
19
- rev : " 6.1 .0"
30
+ rev : " 7.0 .0"
20
31
hooks :
21
32
- id : flake8
22
33
additional_dependencies : [
@@ -30,7 +41,13 @@ repos:
30
41
- id : detect-secrets
31
42
32
43
- repo : https://github.com/astral-sh/ruff-pre-commit
33
- rev : v0.1.5
44
+ rev : v0.2.1
34
45
hooks :
35
46
- id : ruff
47
+ args : [--fix]
36
48
- id : ruff-format
49
+
50
+ - repo : https://github.com/gitleaks/gitleaks
51
+ rev : v8.18.2
52
+ hooks :
53
+ - id : gitleaks
Original file line number Diff line number Diff line change
1
+ approvers:
2
+ - <>
3
+ reviewers:
4
+ - <>
Original file line number Diff line number Diff line change 1
1
# python-template-repository
2
2
Template repository for python
3
+
4
+ ## How to use
5
+ - Use the repo as a github template to create a new repository
6
+ - Initiate poetry and follow the instructions
7
+ ``` bash
8
+ poetry init
9
+ ```
10
+ - Update the ` OWNERS ` file relevant sections
11
+ - If needed, add more checks in ` tox.ini `
Original file line number Diff line number Diff line change
1
+ [tox]
2
+ envlist = unused-code
3
+ skipsdist = True
4
+
5
+ # Unused code
6
+ [testenv:unused-code]
7
+ basepython = python3
8
+ recreate =True
9
+ setenv =
10
+ PYTHONPATH = {toxinidir}
11
+ deps =
12
+ python-utility-scripts
13
+ commands =
14
+ pyappsutils-unusedcode --exclude-function-prefixes ' process_webhook'
You can’t perform that action at this time.
0 commit comments