Skip to content

Commit 63103f4

Browse files
authored
Add uv-pre-commit (#15109)
* Add uv-pre-commit * updating DIRECTORY.md --------- Co-authored-by: cclauss <cclauss@users.noreply.github.com>
1 parent dde1e49 commit 63103f4

4 files changed

Lines changed: 920 additions & 530 deletions

File tree

.pre-commit-config.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,21 @@ repos:
2121
hooks:
2222
- id: auto-walrus
2323

24-
- repo: https://github.com/astral-sh/uv-pre-commit
25-
rev: 0.12.7
26-
hooks:
27-
- id: uv-lock
28-
29-
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.16.1
31-
hooks:
32-
- id: ruff-check
33-
- id: ruff-format
34-
3524
- repo: https://github.com/codespell-project/codespell
3625
rev: v2.4.3
3726
hooks:
3827
- id: codespell
3928
additional_dependencies:
4029
- tomli
4130

31+
- repo: https://github.com/astral-sh/ruff-pre-commit
32+
rev: v0.16.5
33+
hooks:
34+
- id: ruff-check
35+
- id: ruff-format
36+
4237
- repo: https://github.com/tox-dev/pyproject-fmt
43-
rev: v2.26.0
38+
rev: v2.28.1
4439
hooks:
4540
- id: pyproject-fmt
4641

@@ -52,8 +47,13 @@ repos:
5247
language: script
5348
pass_filenames: false
5449

50+
- repo: https://github.com/astral-sh/uv-pre-commit
51+
rev: 0.12.7
52+
hooks:
53+
- id: uv-lock
54+
5555
- repo: https://github.com/abravalheri/validate-pyproject
56-
rev: v0.25
56+
rev: "0.26"
5757
hooks:
5858
- id: validate-pyproject
5959

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: 6 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
@@ -1372,6 +1377,7 @@
13721377
* [Split](strings/split.py)
13731378
* [String Switch Case](strings/string_switch_case.py)
13741379
* [Strip](strings/strip.py)
1380+
* [Suffix Automaton](strings/suffix_automaton.py)
13751381
* [Text Justification](strings/text_justification.py)
13761382
* [Title](strings/title.py)
13771383
* [Top K Frequent Words](strings/top_k_frequent_words.py)

0 commit comments

Comments
 (0)