Skip to content

Commit 5f09539

Browse files
committed
Add uv-pre-commit
1 parent 02c6850 commit 5f09539

4 files changed

Lines changed: 919 additions & 530 deletions

File tree

.pre-commit-config.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,21 @@ repos:
1818
hooks:
1919
- id: auto-walrus
2020

21-
- repo: https://github.com/astral-sh/uv-pre-commit
22-
rev: 0.12.7
23-
hooks:
24-
- id: uv-lock
25-
26-
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.16.1
28-
hooks:
29-
- id: ruff-check
30-
- id: ruff-format
31-
3221
- repo: https://github.com/codespell-project/codespell
3322
rev: v2.4.3
3423
hooks:
3524
- id: codespell
3625
additional_dependencies:
3726
- tomli
3827

28+
- repo: https://github.com/astral-sh/ruff-pre-commit
29+
rev: v0.16.5
30+
hooks:
31+
- id: ruff-check
32+
- id: ruff-format
33+
3934
- repo: https://github.com/tox-dev/pyproject-fmt
40-
rev: v2.26.0
35+
rev: v2.28.1
4136
hooks:
4237
- id: pyproject-fmt
4338

@@ -49,8 +44,13 @@ repos:
4944
language: script
5045
pass_filenames: false
5146

47+
- repo: https://github.com/astral-sh/uv-pre-commit
48+
rev: 0.12.7
49+
hooks:
50+
- id: uv-lock
51+
5252
- repo: https://github.com/abravalheri/validate-pyproject
53-
rev: v0.25
53+
rev: "0.26"
5454
hooks:
5555
- id: validate-pyproject
5656

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ We want your work to be readable by others; therefore, we encourage you to note
108108
The following are considered to be bad and may be requested to be improved:
109109

110110
```python
111-
x = x + 2 # increased by 2
111+
x = x + 2 # increased by 2
112112
```
113113

114114
This is too trivial. Comments are expected to be explanatory. For comments, you can write them above, on or below a line of code, as long as you are consistent within the same piece of code.
@@ -148,7 +148,7 @@ We want your work to be readable by others; therefore, we encourage you to note
148148
The use of the Python built-in `input()` function is __not__ encouraged:
149149

150150
```python
151-
input('Enter your input:')
151+
input("Enter your input:")
152152
# Or even worse...
153153
input = eval(input("Enter your input: "))
154154
```

DIRECTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
## Audio Filters
33
* [Butterworth Filter](audio_filters/butterworth_filter.py)
4+
* [Equal Loudness Filter](audio_filters/equal_loudness_filter.py)
45
* [Iir Filter](audio_filters/iir_filter.py)
56
* [Show Response](audio_filters/show_response.py)
67

@@ -451,9 +452,11 @@
451452
* [Time And Half Pay](financial/time_and_half_pay.py)
452453

453454
## Fractals
455+
* [Barnsley Fern](fractals/barnsley_fern.py)
454456
* [Julia Sets](fractals/julia_sets.py)
455457
* [Koch Snowflake](fractals/koch_snowflake.py)
456458
* [Mandelbrot](fractals/mandelbrot.py)
459+
* [Sierpinski Carpet](fractals/sierpinski_carpet.py)
457460
* [Sierpinski Triangle](fractals/sierpinski_triangle.py)
458461
* [Vicsek](fractals/vicsek.py)
459462

@@ -843,8 +846,10 @@
843846
* [Validate Sudoku Board](matrix/validate_sudoku_board.py)
844847

845848
## Networking Flow
849+
* [Dinic](networking_flow/dinic.py)
846850
* [Ford Fulkerson](networking_flow/ford_fulkerson.py)
847851
* [Minimum Cut](networking_flow/minimum_cut.py)
852+
* [Push Relabel](networking_flow/push_relabel.py)
848853

849854
## Neural Network
850855
* Activation Functions

0 commit comments

Comments
 (0)