Skip to content

Commit 7b97809

Browse files
authored
Organize repo into proper directories (#20)
1 parent 7e5fd57 commit 7b97809

File tree

70 files changed

+107
-56
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+107
-56
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
default_language_version:
22
python: python3.12
33
fail_fast: true
4+
5+
ci:
6+
# Define the common exclude pattern as an anchor
7+
exclude_patterns: &exclude_patterns |
8+
(?x)(
9+
.*/input_repo/.*|
10+
.*/output_repo/.*|
11+
.*/repositories/.*
12+
)
13+
414
repos:
515
- repo: https://github.com/astral-sh/ruff-pre-commit
616
rev: v0.9.3
@@ -9,10 +19,12 @@ repos:
919
- id: ruff
1020
types_or: [python, jupyter, pyi]
1121
args: [--fix]
22+
exclude: *exclude_patterns
1223

1324
# Run the formatter.
1425
- id: ruff-format
1526
types_or: [python, jupyter, pyi]
27+
exclude: *exclude_patterns
1628

1729
- repo: https://github.com/kynan/nbstripout
1830
rev: 0.8.1
@@ -23,11 +35,12 @@ repos:
2335
rev: v5.0.0
2436
hooks:
2537
- id: trailing-whitespace
26-
exclude: tests/
38+
exclude: *exclude_patterns
2739
exclude_types: [mdx, pyi]
2840
- id: check-yaml
41+
exclude: *exclude_patterns
2942
- id: end-of-file-fixer
30-
files: .*/expected_diff.patch
43+
exclude: *exclude_patterns
3144
- id: check-merge-conflict
3245

3346
- repo: https://github.com/python-jsonschema/check-jsonschema

flask_to_fastapi_migration/README.md renamed to examples/flask_to_fastapi_migration/README.md

Lines changed: 4 additions & 4 deletions
File renamed without changes.

flask_to_fastapi_migration/input_repo/static/index.html renamed to examples/flask_to_fastapi_migration/input_repo/static/index.html

File renamed without changes.

flask_to_fastapi_migration/input_repo/static/script.js renamed to examples/flask_to_fastapi_migration/input_repo/static/script.js

File renamed without changes.

flask_to_fastapi_migration/input_repo/static/style.css renamed to examples/flask_to_fastapi_migration/input_repo/static/style.css

File renamed without changes.

flask_to_fastapi_migration/input_repo/templates/authors.html renamed to examples/flask_to_fastapi_migration/input_repo/templates/authors.html

File renamed without changes.

flask_to_fastapi_migration/input_repo/templates/books.html renamed to examples/flask_to_fastapi_migration/input_repo/templates/books.html

File renamed without changes.

flask_to_fastapi_migration/input_repo/templates/categories.html renamed to examples/flask_to_fastapi_migration/input_repo/templates/categories.html

File renamed without changes.

flask_to_fastapi_migration/input_repo/templates/index.html renamed to examples/flask_to_fastapi_migration/input_repo/templates/index.html

File renamed without changes.

0 commit comments

Comments
 (0)