File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [codespell]
2+ ignore-words-list = te
Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ lint :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Set up Python
16+ uses : actions/setup-python@v4
17+ with :
18+ python-version : " 3.12"
19+
20+ - name : Install pre-commit
21+ run : python -m pip install pre-commit
22+
23+ - name : Run pre-commit checks
24+ run : SKIP=no-commit-to-branch pre-commit run --all-files --show-diff-on-failure
Original file line number Diff line number Diff line change @@ -182,11 +182,11 @@ cython_debug/
182182.abstra /
183183
184184# Visual Studio Code
185- # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
185+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186186# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187- # and can be added to the global gitignore or merged into this file. However, if you prefer,
187+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188188# you could uncomment the following to ignore the entire vscode folder
189- # .vscode/
189+ .vscode /
190190
191191# Ruff stuff:
192192.ruff_cache /
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/pre-commit/pre-commit-hooks
3+ rev : v5.0.0
4+ hooks :
5+ - id : trailing-whitespace
6+ - id : end-of-file-fixer
7+ - id : check-toml
8+ - id : check-yaml
9+ - id : check-ast
10+ - id : check-added-large-files
11+ - id : check-merge-conflict
12+ - id : debug-statements
13+ - id : detect-private-key
14+ - id : no-commit-to-branch
15+
16+ - repo : https://github.com/PyCQA/isort
17+ rev : 5.13.2
18+ hooks :
19+ - id : isort
20+
21+ - repo : https://github.com/astral-sh/ruff-pre-commit
22+ rev : v0.11.7
23+ hooks :
24+ - id : ruff
25+ args :
26+ - --select=F401,F821
27+ - --fix
28+
29+ - repo : https://github.com/psf/black
30+ rev : 24.10.0
31+ hooks :
32+ - id : black
33+
34+ - repo : https://github.com/codespell-project/codespell
35+ rev : v2.4.1
36+ hooks :
37+ - id : codespell
38+ args : ['--config', '.codespellrc']
You can’t perform that action at this time.
0 commit comments