Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier formatter #2018

Merged
merged 49 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
fc836fc
Formatted with Prettier
Domejko Apr 22, 2024
0b19452
Merge remote-tracking branch 'origin/main' into prettier-formater
Domejko Apr 22, 2024
d67eb37
Added package-lock.json
Domejko Apr 22, 2024
5dda298
Removed the .idea folder
Domejko Apr 22, 2024
78c3502
Merge branch 'main' into prettier-formater
Domejko Apr 26, 2024
11cb3c7
Removed version
Domejko Apr 26, 2024
42dbe13
Added .prettierignore with tests/data/*
Domejko Apr 26, 2024
3fca0ab
Added npm updates
Domejko Apr 26, 2024
27c8820
Updated prettier
Domejko Apr 26, 2024
394e063
Merge branch 'main' into prettier-formater
Domejko Apr 26, 2024
d1286d6
Update style.yaml
Domejko Apr 26, 2024
81968e4
Updated linters section
Domejko Apr 26, 2024
83924e4
Merge branch 'main' into prettier-formater
Domejko Apr 26, 2024
b336e99
Merge branch 'prettier-formater' of https://github.com/Domejko/torchg…
Domejko Apr 26, 2024
849f613
Added Prettier hook
Domejko Apr 26, 2024
aa4ece9
Added Prettier hook
Domejko Apr 26, 2024
c5851eb
Added exclude regex
Domejko Apr 26, 2024
e3921ba
Update .prettierignore
Domejko Apr 26, 2024
cee8a2f
Added package.json and package-lock.json
Domejko Apr 26, 2024
c1266b7
Merge branch 'prettier-formater' of https://github.com/Domejko/torchg…
Domejko Apr 26, 2024
f72520a
Added npm ci flag
Domejko Apr 26, 2024
10af595
Formatted with Prettier
Domejko Apr 26, 2024
11cc878
Updated .gitignore
Domejko Apr 26, 2024
eed3231
Merge branch 'main' into prettier-formater
Domejko Apr 27, 2024
c03e0e9
Reverted changes in data folder
Domejko Apr 27, 2024
212622f
Added .idea to ignored entries
Domejko Apr 27, 2024
a77920c
Delete package-lock.json from root
Domejko Apr 27, 2024
b8c2d82
Added cache dependency path
Domejko Apr 27, 2024
0d26947
Formatted with Prettier
Domejko Apr 27, 2024
0259087
Formatted with Prettier
Domejko Apr 27, 2024
ea65933
Updated tests.yaml
Domejko Apr 27, 2024
29d614f
Updated regex
Domejko Apr 29, 2024
3eac7c6
Updated actions/checkout to v4.1.4
Domejko Apr 29, 2024
e697b7e
Updated SECURITY and dependabot
Domejko Apr 29, 2024
c9c2e01
Removed .idea and requirements/node_modules
Domejko Apr 29, 2024
92e5236
Updated package files
Domejko Apr 29, 2024
22d2980
Changed .yaml files format
Domejko Apr 29, 2024
242e167
Added EOL
Domejko Apr 29, 2024
a22ca98
Updated contributing.rst
Domejko Apr 29, 2024
8dc8d20
Merge branch 'main' into prettier-formater
Domejko Apr 29, 2024
dea2fb8
Updated style.yaml
Domejko May 2, 2024
e0960db
Updated style CI
Domejko May 2, 2024
25a6a89
Added node_modules to ignored entries
Domejko May 2, 2024
8e5121d
Updated npm install command
Domejko May 2, 2024
f4b0971
Added *.json root files to ignored entries
Domejko May 2, 2024
0702834
Updated prettier version range
Domejko May 2, 2024
625bba8
Merge branch 'main' into prettier-formater
Domejko May 3, 2024
195df9f
Updated prettier install command
Domejko May 3, 2024
b56bc5b
Relocated # Node stuff
Domejko May 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"python.editor.codeActionsOnSave": {
"source.organizeImports": true
},
"python.diffEditor.wordWrap": "off",
"python.diffEditor.wordWrap": "off"
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

TorchGeo is an open-source project built by contributors like you from around the world. If you find a bug or would like to add a new feature, please open a pull request. For further information on how to contribute, including topics like:

* using git,
* licensing requirements,
* writing and running unit tests,
* running linters,
* building the documentation, and
* adding new datasets,
- using git,
- licensing requirements,
- writing and running unit tests,
- running linters,
- building the documentation, and
- adding new datasets,

please see our [Contributing Guide](https://torchgeo.readthedocs.io/en/stable/user/contributing.html).

Expand Down
100 changes: 50 additions & 50 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,56 @@ description: Create a report to help us reproduce and fix a bug
labels: [bug]

body:
- type: textarea
attributes:
label: Description
description: >
Please provide a clear and concise description of the bug.
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: >
We can't solve your issue if we can't reproduce it. Please provide a
[minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)
that shows how to reproduce the bug. If the bug requires any additional files to
reproduce, please upload those or provide a download link. Your code should be
runnable and include all relevant imports.
placeholder: |
1. Download any Landsat 8 scene from https://earthexplorer.usgs.gov/
2. Run the following code to reproduce the error
- type: textarea
attributes:
label: Description
description: >
Please provide a clear and concise description of the bug.
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: >
We can't solve your issue if we can't reproduce it. Please provide a
[minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)
that shows how to reproduce the bug. If the bug requires any additional files to
reproduce, please upload those or provide a download link. Your code should be
runnable and include all relevant imports.
placeholder: |
1. Download any Landsat 8 scene from https://earthexplorer.usgs.gov/
2. Run the following code to reproduce the error

```python
from torchgeo.datasets import Landsat8
```python
from torchgeo.datasets import Landsat8

ds = Landsat8("/path/to/downloads/directory")
...
```
validations:
required: true
- type: input
attributes:
label: Version
description: |
What version of TorchGeo are you using? This can be found using the following code.
```console
$ python
>>> import torchgeo
>>> torchgeo.__version__
X.Y.Z
```
If you are using a development release (ends with ".dev0") please also include the specific git commit.
ds = Landsat8("/path/to/downloads/directory")
...
```
validations:
required: true
- type: input
attributes:
label: Version
description: |
What version of TorchGeo are you using? This can be found using the following code.
```console
$ python
>>> import torchgeo
>>> torchgeo.__version__
X.Y.Z
```
If you are using a development release (ends with ".dev0") please also include the specific git commit.

Whenever possible, try to reproduce your issue with the latest commit from `main`. You never know, someone may have already fixed your bug!
placeholder: |
1.2.3.dev0 (e1285e6cc6b65080e82bdbf7de9dea3f647d8b3b)
validations:
required: true
- type: markdown
attributes:
value: >
Thanks for taking the time to report this bug! TorchGeo is an open-source project
maintained by its users. If you're Python savvy and want to contribute a pull
request to fix this bug, we'll be happy to review it. If not, we'll try to fix it
as long as we can reproduce it.
Whenever possible, try to reproduce your issue with the latest commit from `main`. You never know, someone may have already fixed your bug!
placeholder: |
1.2.3.dev0 (e1285e6cc6b65080e82bdbf7de9dea3f647d8b3b)
validations:
required: true
- type: markdown
attributes:
value: >
Thanks for taking the time to report this bug! TorchGeo is an open-source project
maintained by its users. If you're Python savvy and want to contribute a pull
request to fix this bug, we'll be happy to review it. If not, we'll try to fix it
as long as we can reproduce it.
40 changes: 20 additions & 20 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ description: Issues or suggestions related to documentation
labels: [documentation]

body:
- type: textarea
attributes:
label: Issue
description: >
A clear and concise description of what is wrong with or missing from the
documentation.
validations:
required: true
- type: textarea
attributes:
label: Fix
description: >
Tell us how we could improve the documentation!
- type: markdown
attributes:
value: >
Thanks for taking the time to improve the documentation! TorchGeo is an
open-source project maintained by its users. If you're rST savvy and want
to contribute a pull request to improve the docs, we'll be happy to review
it. If not, we'll try to fix it when a get a chance.
- type: textarea
attributes:
label: Issue
description: >
A clear and concise description of what is wrong with or missing from the
documentation.
validations:
required: true
- type: textarea
attributes:
label: Fix
description: >
Tell us how we could improve the documentation!
- type: markdown
attributes:
value: >
Thanks for taking the time to improve the documentation! TorchGeo is an
open-source project maintained by its users. If you're rST savvy and want
to contribute a pull request to improve the docs, we'll be happy to review
it. If not, we'll try to fix it when a get a chance.
84 changes: 42 additions & 42 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,45 @@ description: Submit a proposal/request for a new TorchGeo feature
labels: [feature]

body:
- type: markdown
attributes:
value: >
TorchGeo is a PyTorch domain library for _geospatial_ data. If the feature you
are suggesting is not specific to working with geospatial data or multispectral
satellite imagery and may be of interest to the broader computer vision
community, consider contributing it to
[torchvision](https://github.com/pytorch/vision) or
[kornia](https://github.com/kornia/kornia) instead.
- type: textarea
attributes:
label: Summary
description: >
A clear and concise summary of your suggestion.
- type: textarea
attributes:
label: Rationale
description: >
Why is this feature important? Is it related to a problem you are experiencing?
- type: textarea
attributes:
label: Implementation
description: >
If you've thought about how to implement this feature, describe your proposed
solution.
- type: textarea
attributes:
label: Alternatives
description: >
Are there any alternatives to the solution you've proposed?
- type: textarea
attributes:
label: Additional information
description: >
Any additional information that might be relevant to the proposed feature.
- type: markdown
attributes:
value: >
Thanks for suggesting this awesome new feature! TorchGeo is an open-source project
maintained by its users. If you're Python savvy and want to contribute a pull
request to implement this feature, we'll be happy to review it. If not, we'll try
to implement your feature when we get a chance.
- type: markdown
attributes:
value: >
TorchGeo is a PyTorch domain library for _geospatial_ data. If the feature you
are suggesting is not specific to working with geospatial data or multispectral
satellite imagery and may be of interest to the broader computer vision
community, consider contributing it to
[torchvision](https://github.com/pytorch/vision) or
[kornia](https://github.com/kornia/kornia) instead.
- type: textarea
attributes:
label: Summary
description: >
A clear and concise summary of your suggestion.
- type: textarea
attributes:
label: Rationale
description: >
Why is this feature important? Is it related to a problem you are experiencing?
- type: textarea
attributes:
label: Implementation
description: >
If you've thought about how to implement this feature, describe your proposed
solution.
- type: textarea
attributes:
label: Alternatives
description: >
Are there any alternatives to the solution you've proposed?
- type: textarea
attributes:
label: Additional information
description: >
Any additional information that might be relevant to the proposed feature.
- type: markdown
attributes:
value: >
Thanks for suggesting this awesome new feature! TorchGeo is an open-source project
maintained by its users. If you're Python savvy and want to contribute a pull
request to implement this feature, we'll be happy to review it. If not, we'll try
to implement your feature when we get a chance.
20 changes: 10 additions & 10 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@

Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).

If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](<https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)>), please report it to us as described below.
adamjstewart marked this conversation as resolved.
Show resolved Hide resolved

## Reporting Security Issues

**Please do not report security vulnerabilities through public GitHub issues.**

Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).

If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).

You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).

Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:

* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
- Full paths of source file(s) related to the manifestation of the issue
- The location of the affected source code (tag/branch/commit or direct URL)
- Any special configuration required to reproduce the issue
- Step-by-step instructions to reproduce the issue
- Proof-of-concept or exploit code (if possible)
- Impact of the issue, including how an attacker might exploit the issue

This information will help us triage your report more quickly.

Expand Down
26 changes: 13 additions & 13 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Support
## How to file issues and get help
This project uses GitHub Issues to track bugs and feature requests. Please search the existing
issues before filing new issues to avoid duplicates. For new issues, file your bug or
feature request as a new Issue.
For help and questions about using this project, please open an Issue.
## Microsoft Support Policy
Support for TorchGeo is limited to the resources listed above.
# Support

## How to file issues and get help

This project uses GitHub Issues to track bugs and feature requests. Please search the existing
issues before filing new issues to avoid duplicates. For new issues, file your bug or
feature request as a new Issue.

For help and questions about using this project, please open an Issue.

## Microsoft Support Policy

Support for TorchGeo is limited to the resources listed above.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ updates:
versions: ">=6"
# segmentation-models-pytorch pins timm, must update in unison
- dependency-name: "timm"
# torchvision pins torch, must update in unison
- dependency-name: "torch"
adamjstewart marked this conversation as resolved.
Show resolved Hide resolved
- package-ecosystem: "npm"
directory: "/"
adamjstewart marked this conversation as resolved.
Show resolved Hide resolved
schedule:
interval: "weekly"
Loading
Loading