Skip to content

Commit 5b2b22e

Browse files
authored
[Internal]: Ensure all files end with a newline (#2227)
This commit adds a pre-commit hook to ensure that all text files end with a newline. Since some editors add a newline automatically, enforcing all files have one will help avoid unnecessary edits as well as warnings in PR diffs. Python files are already forced to have a newline by ruff, so this change only affects non-Python files (Markdown, YAML, etc).
1 parent 3918689 commit 5b2b22e

File tree

135 files changed

+130
-135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+130
-135
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ body:
3939
attributes:
4040
label: Additional information
4141
description: |
42-
Any links, references or screenshots to have more context about the issue.
42+
Any links, references or screenshots to have more context about the issue.

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ body:
2828
- 'Yes'
2929
- 'No'
3030
validations:
31-
required: true
31+
required: true

.github/workflows/close-inactive-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
stale-pr-label: "stale"
2424
stale-pr-message: "This PR is stale because it has been open for 14 days with no activity."
2525
close-pr-message: "This PR was closed because it has been inactive for 7 days since being marked as stale. Please reopen the PR if it is still relevant."
26-
exempt-issue-labels: no-stale,major
26+
exempt-issue-labels: no-stale,major

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
repository-name: dstackai/dstackai.github.io
3535
branch: gh-pages
3636
token: ${{ secrets.GH_TOKEN }}
37-
folder: site
37+
folder: site

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ venv/
1919
build/
2020
.DS_Store
2121
.fleet
22-
.env
22+
.env

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ repos:
1313
language_version: 1.23.0 # Should match runner/go.mod
1414
entry: bash -c 'cd runner && golangci-lint run'
1515
stages: [manual]
16+
- repo: https://github.com/pre-commit/pre-commit-hooks
17+
rev: v5.0.0
18+
hooks:
19+
- id: end-of-file-fixer

contributing/AUTOSCALING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
`RPSAutoscaler` implements simple target tracking scaling. The target value represents requests per second per replica (in a 1-minute window).
1818

19-
`scale_up_delay` tells how much time has to pass since the last upscale or downscale event before the next upscaling. `scale_down_delay` tells how much time has to pass since the last upscale or downscale event before the next downscaling.
19+
`scale_up_delay` tells how much time has to pass since the last upscale or downscale event before the next upscaling. `scale_down_delay` tells how much time has to pass since the last upscale or downscale event before the next downscaling.

contributing/DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ pre-commit install
3434

3535
## 6. Frontend
3636

37-
See [FRONTEND.md](FRONTEND.md) for the details on how to build and develop the frontend.
37+
See [FRONTEND.md](FRONTEND.md) for the details on how to build and develop the frontend.

contributing/GATEWAY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ The Stats collector parses nginx `/var/log/nginx/dstack.access.log` to collect b
7171

7272
By default, it stores 5 minutes with 1-second resolution frames for each domain. It aggregates these frames in windows of the size 30 seconds, 1 minute, and 5 minutes, before sending to the server.
7373

74-
To increase performance, `StatsCollector` keeps position in file and read only new records. It can detect log rotation and reopen the log file.
74+
To increase performance, `StatsCollector` keeps position in file and read only new records. It can detect log rotation and reopen the log file.

contributing/GPUHUNT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ Some providers offer extreme flexibility in possible configurations, but not all
9494

9595
The offline catalog is built in GitHub Actions every night. Every offline provider produces a CSV file with offers. Later, those files get compressed into a zip archive and uploaded to the public S3 bucket.
9696

97-
To ensure data quality, there is a catalog integrity testing step. It uses some simple heuristics to avoid empty catalog files, zero prices, or missing regions.
97+
To ensure data quality, there is a catalog integrity testing step. It uses some simple heuristics to avoid empty catalog files, zero prices, or missing regions.

contributing/RUNNER-AND-SHIM.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ All communication between the `dstack` server and `dstack-runner` happens via RE
4646

4747
`dstack-shim` must also be running next to the SSH server. The `dstack` server connects to this SSH server for interacting with both `dstack-shim` and `dstack-runner` since we use `host` networking mode for the Docker container. The CLI uses this SSH server as a jump host because the user wants to connect to the container.
4848

49-
> `host` networking mode would allow jobs to use any port at any moment for internal communication. For example, during distributed PyTorch training.
49+
> `host` networking mode would allow jobs to use any port at any moment for internal communication. For example, during distributed PyTorch training.

docker/base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ RUN wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/lat
2727
/opt/conda/condabin/conda config --prepend channels "nvidia/label/cuda-12.1.0" && \
2828
/opt/conda/condabin/conda config --set always_yes true && \
2929
/opt/conda/condabin/conda clean --all && \
30-
echo "conda activate workflow" >> ~/.bashrc
30+
echo "conda activate workflow" >> ~/.bashrc

docker/base/devel.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ ARG VERSION
44
FROM dstackai/base:py$PYTHON-$VERSION-cuda-12.1
55

66
RUN /opt/conda/condabin/conda install --name workflow cuda -y && \
7-
/opt/conda/condabin/conda clean --all
7+
/opt/conda/condabin/conda clean --all

docker/server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ For additional information and examples, see the following links:
5252

5353
## License
5454

55-
[Mozilla Public License 2.0](https://github.com/dstackai/dstack/blob/master/LICENSE.md)
55+
[Mozilla Public License 2.0](https://github.com/dstackai/dstack/blob/master/LICENSE.md)

docs/CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dstack.ai
1+
dstack.ai

docs/assets/images/azure-logo.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/assets/images/datacrunch-logo.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/assets/images/discord-logo.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/assets/images/hotaisle-logo.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

docs/assets/images/lambda-logo.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/assets/images/minus.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/assets/images/oci-logo.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/assets/images/plus.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)