|
2 | 2 | import uuid
|
3 | 3 | import os
|
4 | 4 |
|
5 |
| - |
6 | 5 | DEFAULT_IGNORE_PATTERNS = [
|
7 | 6 | # Python
|
8 | 7 | '*.pyc', '*.pyo', '*.pyd', '__pycache__', '.pytest_cache', '.coverage',
|
|
12 | 11 | # JavaScript/Node
|
13 | 12 | 'node_modules', 'bower_components', 'package-lock.json', 'yarn.lock',
|
14 | 13 | '.npm', '.yarn', '.pnpm-store',
|
| 14 | + |
| 15 | + # Java |
| 16 | + '*.class', '*.jar', '*.war', '*.ear', '*.nar', |
| 17 | + 'target/', '.gradle/', 'build/', |
| 18 | + '.settings/', '.project', '.classpath', |
| 19 | + 'gradle-app.setting', '*.gradle', |
| 20 | + |
| 21 | + # C/C++ |
| 22 | + '*.o', '*.obj', '*.so', '*.dll', '*.dylib', '*.exe', '*.lib', '*.out', '*.a', '*.pdb', |
| 23 | + |
| 24 | + # Swift/Xcode |
| 25 | + '.build/', '*.xcodeproj/', '*.xcworkspace/', |
| 26 | + '*.pbxuser', '*.mode1v3', '*.mode2v3', |
| 27 | + '*.perspectivev3', '*.xcuserstate', |
| 28 | + 'xcuserdata/', '.swiftpm/', |
| 29 | + |
| 30 | + # Ruby |
| 31 | + '*.gem', '.bundle/', 'vendor/bundle', |
| 32 | + 'Gemfile.lock', '.ruby-version', |
| 33 | + '.ruby-gemset', '.rvmrc', |
| 34 | + |
| 35 | + # Rust |
| 36 | + 'target/', 'Cargo.lock', '**/*.rs.bk', |
| 37 | + |
| 38 | + # Go |
| 39 | + 'bin/', 'pkg/', |
| 40 | + |
| 41 | + # .NET/C# |
| 42 | + 'bin/', 'obj/', '*.suo', '*.user', |
| 43 | + '*.userosscache', '*.sln.docstates', |
| 44 | + 'packages/', '*.nupkg', |
15 | 45 |
|
16 | 46 | # Version control
|
17 | 47 | '.git', '.svn', '.hg', '.gitignore', '.gitattributes', '.gitmodules',
|
|
33 | 63 | '.DS_Store', 'Thumbs.db', 'desktop.ini',
|
34 | 64 |
|
35 | 65 | # Build directories and artifacts
|
36 |
| - 'build', 'dist', 'target', 'out', |
37 |
| - '*.egg-info', '*.egg', '*.whl', |
38 |
| - '*.so', '*.dylib', '*.dll', '*.class', |
| 66 | + 'dist', '*.egg-info', '*.egg', '*.whl', |
39 | 67 |
|
40 | 68 | # Documentation
|
41 | 69 | 'site-packages', '.docusaurus', '.next', '.nuxt',
|
|
47 | 75 | 'vendor/', # Dependencies in various languages
|
48 | 76 | ]
|
49 | 77 |
|
| 78 | + |
50 | 79 | TMP_BASE_PATH = "../tmp"
|
51 | 80 |
|
52 | 81 | def parse_url(url: str) -> dict:
|
|
0 commit comments