Skip to content

Commit 5a1d70c

Browse files
committed
Clean up minor formatting issues.
Don't try to force import order in examples to look like external projects. Remove shebangs from test scripts. Add +x to examples and scripts. Fix all whitespace and final newlines.
1 parent 498c50a commit 5a1d70c

23 files changed

Lines changed: 17 additions & 30 deletions

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ indent_size = 2
2626
[*.json]
2727
indent_style = space
2828
indent_size = 4
29-
insert_final_newline = false

.github/workflows/python-package.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@ jobs:
3535
uses: liskin/gh-problem-matcher-wrap@v2
3636
with:
3737
linters: isort
38-
run: isort scripts/ tcod/ tests/ --check --diff
39-
- name: isort (examples)
40-
uses: liskin/gh-problem-matcher-wrap@v2
41-
with:
42-
linters: isort
43-
run: isort examples/ --check --diff --thirdparty tcod
38+
run: isort scripts/ tcod/ tests/ examples/ --check --diff
4439

4540
flake8:
4641
runs-on: ubuntu-latest

.pyup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# autogenerated pyup.io config file
1+
# autogenerated pyup.io config file
22
# see https://pyup.io/docs/configuration/ for all available options
33

44
update: false

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
],
1717
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
1818
"unwantedRecommendations": []
19-
}
19+
}

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545
"preLaunchTask": "build documentation",
4646
}
4747
]
48-
}
48+
}

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"editor.codeActionsOnSave": {
88
"source.organizeImports": true
99
},
10+
"files.trimFinalNewlines": true,
11+
"files.insertFinalNewline": true,
12+
"files.trimTrailingWhitespace": true,
1013
"python.linting.enabled": true,
1114
"python.linting.flake8Enabled": true,
1215
"python.linting.mypyEnabled": true,
@@ -432,4 +435,4 @@
432435
"cSpell.enableFiletypes": [
433436
"github-actions-workflow"
434437
]
435-
}
438+
}

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
}
4242
}
4343
]
44-
}
44+
}

build_libtcod.py

100644100755
File mode changed.

build_sdl.py

100644100755
File mode changed.

docs/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ Indices and tables
5151
* :ref:`genindex`
5252
* :ref:`modindex`
5353
* :ref:`search`
54-

0 commit comments

Comments
 (0)