[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:
parent
4691560522
commit
51a322c77e
@ -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",
|
||||
|
@ -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
1
.gitignore
vendored
@ -13,3 +13,4 @@ node_modules
|
||||
.n2_db
|
||||
.ninja_log
|
||||
.ninja_deps
|
||||
/extra
|
||||
|
@ -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
|
||||
|
@ -40,6 +40,8 @@ const IGNORED_FOLDERS: &[&str] = &[
|
||||
"./tools/workspace-hack",
|
||||
"./qt/bundle/PyOxidizer",
|
||||
"./target",
|
||||
".mypy_cache",
|
||||
"./extra",
|
||||
];
|
||||
|
||||
fn main() -> Result<()> {
|
||||
|
Loading…
Reference in New Issue
Block a user