Skip to content

Commit a265866

Browse files
authored
Enhance config patterns and update dependencies (#15)
* chore: enhance config patterns and update deps - Expand file patterns to 110+ types (Python, JS/TS, Java, C/C++, etc.) - Expand and update language_hints for proper markdown syntax highlighting - Update deps: typer, pytest, pytest-cov --------- Signed-off-by: Joy Barot <joybarot720@gmail.com>
1 parent 7536142 commit a265866

3 files changed

Lines changed: 221 additions & 31 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77
# --- Project Metadata ---
88
[project]
99
name = "codecat"
10-
version = "1.0.1"
10+
version = "1.0.2"
1111
description = "A powerful, feature-rich command-line tool to aggregate source code into a single Markdown file."
1212
readme = "README.md"
1313
requires-python = ">=3.10"
@@ -26,15 +26,15 @@ classifiers = [
2626
"Environment :: Console",
2727
"Typing :: Typed",
2828
]
29-
dependencies = ["typer>=0.14,<0.17", "rich>=13,<15", "shellingham>=1.5,<2"]
29+
dependencies = ["typer>=0.14,<0.21", "rich>=13,<15", "shellingham>=1.5,<2"]
3030

3131
[project.optional-dependencies]
3232
dev = [
3333
"black>=24,<26",
3434
"flake8>=7,<8",
3535
"pyright>=1.1,<2",
36-
"pytest>=8,<9",
37-
"pytest-cov>=6,<7",
36+
"pytest>=8,<10",
37+
"pytest-cov>=6,<8",
3838
"pytest-mock>=3,<4",
3939
"pyinstaller>=6,<7",
4040
]

src/codecat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
This package contains the core logic and metadata for the Codecat application.
88
"""
99

10-
__version__ = "1.0.1"
10+
__version__ = "1.0.2"

src/codecat/config.py

Lines changed: 216 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -28,79 +28,210 @@
2828
"include_patterns": [
2929
"*.py",
3030
"*.pyw",
31-
"*.java",
31+
"*.pyi",
3232
"*.js",
33+
"*.jsx",
3334
"*.ts",
35+
"*.tsx",
36+
"*.mjs",
37+
"*.cjs",
3438
"*.html",
39+
"*.htm",
3540
"*.css",
3641
"*.scss",
37-
"*.go",
38-
"*.rs",
42+
"*.sass",
43+
"*.less",
44+
"*.vue",
45+
"*.svelte",
46+
"*.java",
47+
"*.kt",
48+
"*.kts",
49+
"*.scala",
50+
"*.groovy",
3951
"*.c",
4052
"*.cpp",
53+
"*.cc",
54+
"*.cxx",
4155
"*.h",
4256
"*.hpp",
57+
"*.hh",
58+
"*.hxx",
4359
"*.cs",
60+
"*.csx",
61+
"*.vb",
62+
"*.go",
63+
"*.rs",
64+
"*.zig",
4465
"*.sh",
66+
"*.bash",
67+
"*.zsh",
68+
"*.fish",
4569
"*.ps1",
70+
"*.bat",
71+
"*.cmd",
4672
"*.rb",
73+
"*.rake",
74+
"Rakefile",
75+
"Gemfile",
4776
"*.php",
77+
"*.phtml",
4878
"*.sql",
79+
"*.pgsql",
80+
"*.mysql",
4981
"*.json",
50-
"*.xml",
51-
"*.yml",
82+
"*.jsonc",
83+
"*.json5",
5284
"*.yaml",
85+
"*.yml",
5386
"*.toml",
5487
"*.ini",
5588
"*.cfg",
89+
"*.conf",
90+
"*.xml",
91+
"*.env",
92+
".env.example",
5693
"*.md",
94+
"*.markdown",
95+
"*.rst",
5796
"*.txt",
97+
"*.swift",
98+
"*.dart",
99+
"*.lua",
100+
"*.r",
101+
"*.R",
102+
"*.m",
103+
"*.pl",
104+
"*.ex",
105+
"*.exs",
58106
"Dockerfile",
107+
"Dockerfile.*",
108+
"docker-compose.yml",
109+
"docker-compose.yaml",
59110
".dockerignore",
111+
"Makefile",
112+
"CMakeLists.txt",
60113
".gitignore",
114+
".gitattributes",
115+
".editorconfig",
116+
".eslintrc",
117+
".eslintrc.js",
118+
".eslintrc.json",
119+
".prettierrc",
61120
".flake8",
121+
"pyproject.toml",
122+
"setup.py",
123+
"setup.cfg",
124+
"requirements.txt",
125+
"package.json",
126+
"tsconfig.json",
127+
"cargo.toml",
128+
"go.mod",
62129
],
63130
"exclude_patterns": [
64-
"__pycache__",
65131
"*.pyc",
66132
"*.pyo",
67133
"*.pyd",
68134
"*.so",
69-
"*.egg-info",
70-
"*.dist-info",
135+
"*.egg",
136+
"*.whl",
137+
"*.min.js",
138+
"*.min.css",
139+
"*.bundle.js",
140+
"*.chunk.js",
141+
"*.map",
142+
"npm-debug.log*",
143+
"yarn-debug.log*",
144+
"yarn-error.log*",
71145
"*.log",
146+
"*.o",
147+
"*.a",
148+
"*.lib",
149+
"*.dll",
150+
"*.exe",
151+
"*.out",
152+
"*.class",
153+
"*.jar",
154+
"*.war",
72155
"*.tmp",
156+
"*.temp",
73157
"*.bak",
74158
"*.swp",
75-
"*.lock",
76-
".DS_Store",
77-
"Thumbs.db",
78-
"venv",
79-
"venv*",
80-
".venv",
81-
".*env*",
159+
"*.swo",
160+
"*.db",
161+
"*.sqlite",
162+
"*.sqlite3",
163+
"*.cache",
164+
"*.com",
165+
"*.dylib",
82166
],
83167
"_comment_dirs": "List specific directory names to exclude entirely from the scan.",
84168
"exclude_dirs": [
85169
".git",
86170
".hg",
87171
".svn",
172+
".bzr",
88173
".vscode",
89174
".idea",
175+
".vs",
176+
".fleet",
177+
"__pycache__",
90178
".pytest_cache",
179+
".tox",
180+
".mypy_cache",
181+
".pytype",
182+
".ruff_cache",
183+
"venv",
184+
".venv",
185+
"env",
186+
"ENV",
91187
"node_modules",
92-
"vendor",
93-
"target",
188+
".npm",
189+
".yarn",
190+
".pnp",
191+
".next",
192+
".nuxt",
193+
".output",
194+
".cache",
94195
"build",
95196
"dist",
197+
"out",
198+
"target",
199+
"bin",
200+
"obj",
201+
"pkg",
96202
"docs",
203+
"docs/_build",
97204
"site",
98-
"__pycache__",
205+
"_site",
206+
".docusaurus",
99207
"tests",
100208
"test",
209+
"htmlcov",
210+
"coverage",
211+
".nyc_output",
212+
"vendor",
213+
"bower_components",
214+
"android/build",
215+
"ios/build",
216+
".expo",
217+
".gradle",
218+
"tmp",
219+
"temp",
220+
"logs",
101221
],
102222
"_comment_files": "List specific, exact file names to exclude.",
103-
"exclude_files": [".codecat_config.json", "codecat_output.md"],
223+
"exclude_files": [
224+
".codecat_config.json",
225+
"codecat_output.md",
226+
"package-lock.json",
227+
"yarn.lock",
228+
"pnpm-lock.yaml",
229+
".DS_Store",
230+
"Thumbs.db",
231+
"desktop.ini",
232+
".coverage",
233+
"coverage.xml",
234+
],
104235
"_comment_settings": "General application settings.",
105236
"max_file_size_kb": 1024,
106237
"stop_on_error": False,
@@ -109,38 +240,97 @@
109240
"language_hints": {
110241
".py": "python",
111242
".pyw": "python",
112-
".java": "java",
243+
".pyi": "python",
113244
".js": "javascript",
245+
".jsx": "javascript",
246+
".mjs": "javascript",
247+
".cjs": "javascript",
114248
".ts": "typescript",
249+
".tsx": "typescript",
115250
".html": "html",
251+
".htm": "html",
116252
".css": "css",
117253
".scss": "scss",
118-
".go": "go",
119-
".rs": "rust",
254+
".sass": "scss",
255+
".less": "less",
256+
".vue": "vue",
257+
".svelte": "svelte",
258+
".java": "java",
259+
".kt": "kotlin",
260+
".kts": "kotlin",
261+
".scala": "scala",
262+
".groovy": "groovy",
120263
".c": "c",
121264
".cpp": "cpp",
265+
".cc": "cpp",
266+
".cxx": "cpp",
122267
".h": "c",
123268
".hpp": "cpp",
269+
".hh": "cpp",
270+
".hxx": "cpp",
124271
".cs": "csharp",
272+
".csx": "csharp",
273+
".vb": "vb",
274+
".go": "go",
275+
".rs": "rust",
276+
".zig": "zig",
125277
".sh": "bash",
278+
".bash": "bash",
279+
".zsh": "bash",
280+
".fish": "fish",
126281
".ps1": "powershell",
282+
".bat": "batch",
283+
".cmd": "batch",
127284
".rb": "ruby",
285+
".rake": "ruby",
286+
"rakefile": "ruby",
287+
"gemfile": "ruby",
128288
".php": "php",
289+
".phtml": "php",
129290
".sql": "sql",
291+
".pgsql": "sql",
292+
".mysql": "sql",
130293
".json": "json",
131-
".xml": "xml",
132-
".yml": "yaml",
294+
".jsonc": "jsonc",
295+
".json5": "json5",
133296
".yaml": "yaml",
297+
".yml": "yaml",
134298
".toml": "toml",
135299
".ini": "ini",
136300
".cfg": "ini",
301+
".conf": "ini",
302+
".xml": "xml",
303+
".env": "bash",
137304
".md": "markdown",
305+
".markdown": "markdown",
306+
".rst": "restructuredtext",
138307
".txt": "text",
139-
".dockerfile": "dockerfile",
308+
".swift": "swift",
309+
".dart": "dart",
310+
".lua": "lua",
311+
".r": "r",
312+
".m": "objectivec",
313+
".pl": "perl",
314+
".ex": "elixir",
315+
".exs": "elixir",
140316
"dockerfile": "dockerfile",
141-
".gitignore": "text",
142317
".dockerignore": "text",
318+
"makefile": "makefile",
319+
"cmakelists.txt": "cmake",
320+
".gitignore": "text",
321+
".gitattributes": "text",
322+
".editorconfig": "ini",
323+
".eslintrc": "json",
324+
".prettierrc": "json",
143325
".flake8": "ini",
326+
"pyproject.toml": "toml",
327+
"setup.py": "python",
328+
"setup.cfg": "ini",
329+
"requirements.txt": "text",
330+
"package.json": "json",
331+
"tsconfig.json": "json",
332+
"cargo.toml": "toml",
333+
"go.mod": "go",
144334
},
145335
}
146336

0 commit comments

Comments
 (0)