Skip to content

Commit

Permalink
Fix gitignore to not ignore files that are required (#7538)
Browse files Browse the repository at this point in the history
It is apparently possible to add files to the git index, even if they
are part of the gitignore (see e.g.
https://stackoverflow.com/questions/45400361/why-is-gitignore-not-ignoring-my-files,
even though it's strange that the gitignore entries existed before the
files were added, i wouldn't know how to get them added in that case). I
ran
```
git rm -r --cached .
```
then change the gitignore not actually ignore those files with the
exception of
`crates/ruff_cli/resources/test/fixtures/cache_mutable/source.py`, which
is actually a generated file.
  • Loading branch information
konstin committed Sep 21, 2023
1 parent 887455c commit c3774e1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,9 @@ cython_debug/
# VIM
.*.sw?
.sw?

# Custom re-inclusions for the resolver test cases
!crates/ruff_python_resolver/resources/test/airflow/venv/
!crates/ruff_python_resolver/resources/test/airflow/venv/lib
!crates/ruff_python_resolver/resources/test/airflow/venv/lib/python3.11/site-packages/_watchdog_fsevents.cpython-311-darwin.so
!crates/ruff_python_resolver/resources/test/airflow/venv/lib/python3.11/site-packages/orjson/orjson.cpython-311-darwin.so

This file was deleted.

14 changes: 5 additions & 9 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
*
!assets
!configuration.md
!editor-integrations.md
!faq.md
!installation.md
!requirements.txt
!tutorial.md
!usage.md
contributing.md
index.md
rules.md
rules/
settings.md

0 comments on commit c3774e1

Please sign in to comment.