Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89498e4

Browse files
authored
Merge pull request #298 from JamesParrott/Synced_with_PyShp
Added pre-commit config and ran trailing-whitespace, isort and check-yaml hools
2 parents 1c97410 + 677bce0 commit 89498e4

File tree

10 files changed

+241
-223
lines changed

10 files changed

+241
-223
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ body:
77
id: pyshp-version
88
attributes:
99
label: PyShp Version
10-
description: Please input the version of PyShp you used. If unsure, call `shapefile.__version__`.
10+
description: Please input the version of PyShp you used. If unsure, call `shapefile.__version__`.
1111
placeholder: ...
1212
validations:
1313
required: true
1414
- type: input
1515
id: python-version
1616
attributes:
1717
label: Python Version
18-
description: Please input the version of the Python executable.
18+
description: Please input the version of the Python executable.
1919
placeholder: ...
2020
validations:
2121
required: true
2222
- type: textarea
2323
id: your-code
2424
attributes:
2525
label: Your code
26-
description: Please copy-paste the relevant parts of your code or script that triggered the error.
26+
description: Please copy-paste the relevant parts of your code or script that triggered the error.
2727
placeholder: ...
2828
render: shell
2929
validations:
@@ -41,7 +41,7 @@ body:
4141
id: notes
4242
attributes:
4343
label: Other notes
44-
description: Please input any other notes that may be relevant, e.g. do you have any thoughts on what might be wrong?
44+
description: Please input any other notes that may be relevant, e.g. do you have any thoughts on what might be wrong?
4545
placeholder: ...
4646
validations:
4747
required: false

.github/ISSUE_TEMPLATE/newfeature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body:
1515
id: contribute
1616
attributes:
1717
label: Contributions
18-
description: Would you be interested to contribute code that adds this functionality through a Pull Request? We gladly accept PRs - it's much faster and you'll be added a contributor.
18+
description: Would you be interested to contribute code that adds this functionality through a Pull Request? We gladly accept PRs - it's much faster and you'll be added a contributor.
1919
options:
2020
- label: I am interested in implementing the described feature request and submit as a PR.
2121
required: false

.github/ISSUE_TEMPLATE/question.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body:
66
- type: textarea
77
id: question
88
attributes:
9-
label: What's your question?
9+
label: What's your question?
1010
description: Please describe what you would like to know about PyShp, e.g. how to do something.
1111
placeholder: ...
1212
validations:

.github/ISSUE_TEMPLATE/unexpected.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ body:
77
id: pyshp-version
88
attributes:
99
label: PyShp Version
10-
description: Please input the version of PyShp you used. If unsure, call `shapefile.__version__`.
10+
description: Please input the version of PyShp you used. If unsure, call `shapefile.__version__`.
1111
placeholder: ...
1212
validations:
1313
required: true
1414
- type: input
1515
id: python-version
1616
attributes:
1717
label: Python Version
18-
description: Please input the version of the Python executable.
18+
description: Please input the version of the Python executable.
1919
placeholder: ...
2020
validations:
2121
required: true
2222
- type: textarea
2323
id: your-code
2424
attributes:
2525
label: Your code
26-
description: Please copy-paste the relevant parts of your code or script that you tried to run.
26+
description: Please copy-paste the relevant parts of your code or script that you tried to run.
2727
placeholder: ...
2828
render: shell
2929
validations:
@@ -48,7 +48,7 @@ body:
4848
id: notes
4949
attributes:
5050
label: Other notes
51-
description: Please input any other notes that may be relevant, e.g. do you have any thoughts on what might be wrong?
51+
description: Please input any other notes that may be relevant, e.g. do you have any thoughts on what might be wrong?
5252
placeholder: ...
5353
validations:
5454
required: false

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
build:
13+
pre-commit:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
- uses: pre-commit/[email protected]
19+
test:
1420

1521
strategy:
1622
fail-fast: false

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: trailing-whitespace
7+
- repo: https://github.com/pycqa/isort
8+
rev: 5.13.2
9+
hooks:
10+
- id: isort
11+
name: isort (python)
12+

LICENSE.TXT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The MIT License (MIT)
2-
2+
33
Copyright � 2013 Joel Lawhead
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the �Software�), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

0 commit comments

Comments
 (0)