You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add stub information
* fix pre commit
use https protocol in repo url,
do not use system installation for `ruby` (see: pre-commit/pre-commit#1930)
* try newer ruby version in pre-commit
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix markdown lint errors
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Hennes <[email protected]>
Copy file name to clipboardExpand all lines: codeformatting/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ FreeCAD is written primarily in C++ and Python (with a few files in other langua
12
12
13
13
For the sections of the code that have already been auto-formatted, we use [git pre-commit hooks](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) to enforce that formatting. We use the [pre-commit](https://pre-commit.com/) framework to install and manage our hooks. All developers should install pre-commit following the [instructions here](https://freecad.github.io/DevelopersHandbook/gettingstarted/). When making a new commit, the hooks examine your changed files and ensure that they follow the appropriate formatting for the section of code you are working on. You do not need to manually yourself with your code's formatting as you develop, and may code it as you like (or as your IDE likes...). The hook will ensure that your finished code conforms to project requirements.
14
14
15
-
Not all of FreeCAD currently uses these hooks: it is up to the Maintainers in charge of a particular Workbench or subdirectory to work with their development team to migrate their code's formatting to the automated tools, and to then enable the hooks on their subdirectory.
15
+
Not all of FreeCAD currently uses these hooks: it is up to the Maintainers in charge of a particular Workbench or subdirectory to work with their development team to migrate their code's formatting to the automated tools, and to then enable the hooks on their subdirectory.
16
16
17
17
Currently the following sections of code are covered by pre-commit: `src/Mod/AddonManager`, `src/Tools`, and `tests/src`.
Copy file name to clipboardExpand all lines: designguide/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,4 +40,4 @@ According to the [*Steam monthly hardware survey*](https://store.steampowered.co
40
40
41
41
**Note:** For operating system specific elements Windows is considered the standard due to market share (70% in 2023). Every effort should be made to maintain a uniform appearance across platforms.
42
42
43
-
**Note:** Deviations from the prescriptive guidelines in this design document require justification utilizing sound reasoning and require a design review that such deviation(s) are both warranted and fit within the needs of the user without degrading the overall consistency of the user experience.
43
+
**Note:** Deviations from the prescriptive guidelines in this design document require justification utilizing sound reasoning and require a design review that such deviation(s) are both warranted and fit within the needs of the user without degrading the overall consistency of the user experience.
Copy file name to clipboardExpand all lines: gettingstarted/index.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ FreeCAD depends on many other open source projects to provide the basic foundati
33
33
1. Fork [https://github.com/FreeCAD/FreeCAD](https://github.com/FreeCAD/FreeCAD) on GitHub
34
34
2. Clone your fork: for example, on the command line you can use `git clone https://github.com/YourUsername/FreeCAD FreeCAD-src`
35
35
3. Set up `pre-commit` (our automatic code-formatter and checker):
36
-
36
+
37
37
38
38
- Install `pre-commit` (either using your system package manager or pip):
39
39
- Debian/Ubuntu: `apt install pre-commit`
@@ -42,22 +42,22 @@ FreeCAD depends on many other open source projects to provide the basic foundati
42
42
- Other (pip not in PATH): `python -m pip install pre-commit`
43
43
- On a command line, change into your FreeCAD clone, e.g. `cd FreeCAD-src`
44
44
- Run `pre-commit install` (or `python -m pre-commit install`, depending on your PATH)
45
-
46
-
47
-
45
+
46
+
47
+
48
48
4. We **strongly** recommend doing an out-of-source build, that is, build FreeCAD and put all generated files in a separate directory. Otherwise, the build files will be spread all over the source code and it will be much harder to sort out one from the other. A build directory can be created outside the FreeCAD source folder or inside:
49
49
50
50
-`mkdir build`
51
51
-`cd build`
52
52
53
53
5. Run CMake, either in via the CMake GUI or on the command line see the wiki compilation page for your operating system for a detailed list of options.
54
54
6. CMake will generate project files that can be read by your IDE of choice. See your IDE's documentation for details. In general:
55
-
55
+
56
56
- On Linux, compile with a command like `cmake --build /path/to/FreeCAD-src` run from your build directory ( or `cmake --build ..` if your build directory is inside FreeCAD-src).
57
57
- On Windows with Visual Studio, build the "ALL_BUILD target" (you will have to change the path to the final executable the first time you try to run that target).
58
58
- On Mac on the command line use `cmake --build /path/to/FreeCAD-src` from your build directory, or if using CLion be sure to "Build All" the first time you run.
59
-
60
-
7. If you plan on submitting a PR, create a branch:
59
+
60
+
7. If you plan on submitting a PR, create a branch:
61
61
62
62
-`git branch fixTheThing`
63
63
-`git checkout fixTheThing` (or both commands in one go: `git checkout -b fixTheThing`)
0 commit comments