[Development] Specify extra directory as a designated ignored folder (#2593)

* Add `extra` directory as a designated ignored folder

Excludes `extra/` from version tracking, file formatters, and file checks.

* Remove pytest cache from exclusion rules

Python test discovery is easy enough to disable for the workspace in VS Code's settings and pytest does not serve any purpose in the context of the project anyway.
This commit is contained in:
Aristotelis 2023-07-27 14:27:07 +02:00 committed by GitHub
parent 4691560522
commit 51a322c77e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 2 deletions

View File

@ -27,7 +27,9 @@
"licenses.json",
".dmypy.json",
"qt/bundle/PyOxidizer",
"target"
"target",
".mypy_cache",
"extra"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.85.1.wasm",

View File

@ -50,7 +50,7 @@ module.exports = {
},
],
env: { browser: true },
ignorePatterns: ["backend_proto.d.ts", "*.svelte.d.ts", "vendor"],
ignorePatterns: ["backend_proto.d.ts", "*.svelte.d.ts", "vendor", "extra/*"],
globals: {
globalThis: false,
NodeListOf: false,

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ node_modules
.n2_db
.ninja_log
.ninja_deps
/extra

View File

@ -95,6 +95,10 @@ When formatting issues are reported, they can be fixed with
cargo clippy --fix
```
## Excluding your own untracked files from formatting and checks
If you want to add files or folders to the project tree that should be excluded from version tracking and not be matched by formatters and checks, place them in an `extra` folder and they will automatically be ignored.
## Optimized builds
The `./run` command will create a non-optimized build by default. This is faster

View File

@ -40,6 +40,8 @@ const IGNORED_FOLDERS: &[&str] = &[
"./tools/workspace-hack",
"./qt/bundle/PyOxidizer",
"./target",
".mypy_cache",
"./extra",
];
fn main() -> Result<()> {