FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ocpi-python/.pre-commit-config.yaml at main · codexistente/ocpi-python · GitHub
codexistente
/
ocpi-python
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ocpi-python
/
.pre-commit-config.yaml
Copy path
More file actions
More file actions
Latest commit
History
History
History
56 lines (53 loc) · 1.65 KB
Breadcrumbs
ocpi-python
/
.pre-commit-config.yaml
Copy path
File metadata and controls
56 lines (53 loc) · 1.65 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
repos
:
#
Ruff: Fast Python linter and formatter (replaces black + flake8)
#
Note: Pre-commit fixes issues automatically, CI checks them
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
rev
:
v0.1.9
hooks
:
#
Run the linter (fixes issues automatically)
-
id
:
ruff
args
:
[--fix]
#
Run the formatter (formats files automatically)
-
id
:
ruff-format
#
MyPy: Static type checker (updated for Pydantic v2)
-
repo
:
https://github.com/pre-commit/mirrors-mypy
rev
:
v1.8.0
hooks
:
-
id
:
mypy
name
:
mypy
exclude
:
^tests/|^examples/
args
:
[--ignore-missing-imports]
language
:
python
language_version
:
python3
types
:
[python]
require_serial
:
true
verbose
:
true
additional_dependencies
:
-
"
pydantic>=2.0.0
"
#
General file checks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v4.5.0
hooks
:
-
id
:
trailing-whitespace
args
:
[--markdown-linebreak-ext=md]
-
id
:
end-of-file-fixer
-
id
:
check-yaml
args
:
[--unsafe]
#
Allow custom YAML tags
-
id
:
check-toml
-
id
:
check-json
-
id
:
check-added-large-files
args
:
[--maxkb=500]
-
id
:
check-merge-conflict
-
id
:
check-case-conflict
-
id
:
mixed-line-ending
args
:
[--fix=lf]
-
id
:
check-docstring-first
#
Commit message and author checks
-
repo
:
https://github.com/commit-check/commit-check
rev
:
v0.5.6
hooks
:
#
Uncomment if you want to enforce commit message format
#
- id: check-message
-
id
:
check-branch
-
id
:
check-author-name
-
id
:
check-author-email
Back
|
FazBrowse Home
|
New Git URL