Skip to content

Commit 74d87b5

Browse files
committed
Refactor .gitignore for JetBrains IDEs and enhance project hygiene
Improved repository hygiene and IDE configuration management: - Migrated from broad `.idea/` ignore to granular JetBrains-specific exclusions - Added `.idea/.gitignore` for project-specific IDE settings control - Enhanced security by excluding sensitive files: - Workspace configurations (workspace.xml, tasks.xml) - DataSource credentials (dataSources/, dataSources.local.xml) - User-specific dictionaries and caches - Added explicit ignores for plugin-specific files: - SonarLint configuration (sonarlint.xml) - HTTP Client request history - Python SDK settings - Preserved necessary JetBrains project metadata for team consistency - Updated encodings.xml to handle Windows-1251 encoded PowerShell scripts These changes maintain essential IDE functionality while preventing accidental commit of user-specific or sensitive data. Follows JetBrains best practices and community recommendations for modern Python project maintenance.
1 parent 8c6dc3e commit 74d87b5

File tree

8 files changed

+131
-6
lines changed

8 files changed

+131
-6
lines changed

.gitignore

Lines changed: 78 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,84 @@ dmypy.json
160160
# Cython debug symbols
161161
cython_debug/
162162

163-
# PyCharm
164-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166-
# and can be added to the global gitignore or merged into this file. For a more nuclear
167-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
168-
.idea/
163+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
164+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
165+
166+
# User-specific stuff
167+
.idea/**/workspace.xml
168+
.idea/**/tasks.xml
169+
.idea/**/usage.statistics.xml
170+
.idea/**/dictionaries
171+
.idea/**/shelf
172+
173+
# AWS User-specific
174+
.idea/**/aws.xml
175+
176+
# Generated files
177+
.idea/**/contentModel.xml
178+
179+
# Sensitive or high-churn files
180+
.idea/**/dataSources/
181+
.idea/**/dataSources.ids
182+
.idea/**/dataSources.local.xml
183+
.idea/**/sqlDataSources.xml
184+
.idea/**/dynamic.xml
185+
.idea/**/uiDesigner.xml
186+
.idea/**/dbnavigator.xml
187+
188+
# Gradle
189+
.idea/**/gradle.xml
190+
.idea/**/libraries
191+
192+
# Gradle and Maven with auto-import
193+
# When using Gradle or Maven with auto-import, you should exclude module files,
194+
# since they will be recreated, and may cause churn. Uncomment if using
195+
# auto-import.
196+
# .idea/artifacts
197+
# .idea/compiler.xml
198+
# .idea/jarRepositories.xml
199+
# .idea/modules.xml
200+
# .idea/*.iml
201+
# .idea/modules
202+
# *.iml
203+
# *.ipr
204+
205+
# CMake
206+
cmake-build-*/
207+
208+
# Mongo Explorer plugin
209+
.idea/**/mongoSettings.xml
210+
211+
# File-based project format
212+
*.iws
213+
214+
# IntelliJ
215+
out/
216+
217+
# mpeltonen/sbt-idea plugin
218+
.idea_modules/
219+
220+
# JIRA plugin
221+
atlassian-ide-plugin.xml
222+
223+
# Cursive Clojure plugin
224+
.idea/replstate.xml
225+
226+
# SonarLint plugin
227+
.idea/sonarlint/
228+
.idea/sonarlint.xml # see https://community.sonarsource.com/t/is-the-file-idea-idea-idea-sonarlint-xml-intended-to-be-under-source-control/121119
229+
230+
# Crashlytics plugin (for Android Studio and IntelliJ)
231+
com_crashlytics_export_strings.xml
232+
crashlytics.properties
233+
crashlytics-build.properties
234+
fabric.properties
235+
236+
# Editor-based Rest Client
237+
.idea/httpRequests
238+
239+
# Android studio 3.1+ serialized cache file
240+
.idea/caches/build_file_checksums.ser
169241

170242
# PyPI configuration file
171243
.pypirc

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/python-tls-client-async.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)