Skip to content

Commit

Permalink
Prettier: prefer single quotes (#2280)
Browse files Browse the repository at this point in the history
* rettier: prefer single quotes

* Move lockfile to root directory

* Use single quotes in config files
  • Loading branch information
adamjstewart authored Sep 17, 2024
1 parent 9451362 commit 6a5aaf4
Show file tree
Hide file tree
Showing 111 changed files with 485 additions and 483 deletions.
40 changes: 20 additions & 20 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/.devcontainer"
- package-ecosystem: 'devcontainers'
directory: '/.devcontainer'
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
interval: 'weekly'
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "/requirements"
interval: 'weekly'
- package-ecosystem: 'pip'
directory: '/requirements'
schedule:
interval: "daily"
interval: 'daily'
groups:
# torchvision pins torch, must update in unison
torch:
patterns:
- "torch"
- "torchvision"
- 'torch'
- 'torchvision'
ignore:
# setuptools releases new versions almost daily
- dependency-name: "setuptools"
update-types: ["version-update:semver-patch"]
- dependency-name: 'setuptools'
update-types: ['version-update:semver-patch']
# sphinx 6 is incompatible with pytorch-sphinx-theme
# https://github.com/pytorch/pytorch_sphinx_theme/issues/175
- dependency-name: "sphinx"
versions: ">=6"
- dependency-name: 'sphinx'
versions: '>=6'
# segmentation-models-pytorch pins timm, must update in unison
- dependency-name: "timm"
- package-ecosystem: "npm"
directory: "/requirements"
- dependency-name: 'timm'
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "weekly"
versioning-strategy: "lockfile-only"
interval: 'weekly'
versioning-strategy: 'lockfile-only'
38 changes: 19 additions & 19 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
# TorchGeo modules
datamodules:
- changed-files:
- any-glob-to-any-file: "torchgeo/datamodules/**"
- any-glob-to-any-file: 'torchgeo/datamodules/**'
datasets:
- changed-files:
- any-glob-to-any-file: "torchgeo/datasets/**"
- any-glob-to-any-file: 'torchgeo/datasets/**'
losses:
- changed-files:
- any-glob-to-any-file: "torchgeo/losses/**"
- any-glob-to-any-file: 'torchgeo/losses/**'
models:
- changed-files:
- any-glob-to-any-file: "torchgeo/models/**"
- any-glob-to-any-file: 'torchgeo/models/**'
samplers:
- changed-files:
- any-glob-to-any-file: "torchgeo/samplers/**"
- any-glob-to-any-file: 'torchgeo/samplers/**'
trainers:
- changed-files:
- any-glob-to-any-file: "torchgeo/trainers/**"
- any-glob-to-any-file: 'torchgeo/trainers/**'
transforms:
- changed-files:
- any-glob-to-any-file: "torchgeo/transforms/**"
- any-glob-to-any-file: 'torchgeo/transforms/**'

# Other
dependencies:
- changed-files:
- any-glob-to-any-file:
- "pyproject.toml"
- "requirements/**"
- ".github/dependabot.yml"
- 'pyproject.toml'
- 'requirements/**'
- '.github/dependabot.yml'
documentation:
- changed-files:
- any-glob-to-any-file:
- "docs/**"
- "*.md"
- ".github/*.md"
- ".readthedocs.yaml"
- 'docs/**'
- '*.md'
- '.github/*.md'
- '.readthedocs.yaml'
scripts:
- changed-files:
- any-glob-to-any-file:
- "torchgeo/__main__.py"
- "torchgeo/main.py"
- "experiments/**"
- 'torchgeo/__main__.py'
- 'torchgeo/main.py'
- 'experiments/**'
testing:
- changed-files:
- any-glob-to-any-file:
- "tests/**"
- ".github/workflows/**"
- 'tests/**'
- '.github/workflows/**'
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "labeler"
name: 'labeler'
on:
- pull_request_target
jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up python
uses: actions/[email protected]
with:
python-version: "3.12"
python-version: '3.12'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Set up python
uses: actions/[email protected]
with:
python-version: "3.12"
python-version: '3.12'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up python
uses: actions/[email protected]
with:
python-version: "3.12"
python-version: '3.12'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Set up python
uses: actions/[email protected]
with:
python-version: "3.12"
python-version: '3.12'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand All @@ -73,12 +73,12 @@ jobs:
- name: Set up nodejs
uses: actions/[email protected]
with:
node-version: "20"
cache: "npm"
cache-dependency-path: "requirements/package-lock.json"
node-version: '20'
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Installing prettier
run: |
npm install requirements/
npm install
npm cache clean --force
- name: List npm dependencies
run: npm ls --all
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Clone repo
uses: actions/[email protected]
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Set up python
uses: actions/[email protected]
with:
python-version: "3.10"
python-version: '3.10'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Set up python
uses: actions/[email protected]
with:
python-version: "3.12"
python-version: '3.12'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tutorials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up python
uses: actions/[email protected]
with:
python-version: "3.12"
python-version: '3.12'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

# Node stuff:
node_modules/
/*.json

# Spack
.spack-env/
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version: 2
build:
os: ubuntu-lts-latest
tools:
python: "3.12"
python: '3.12'

# Configuration of the Python environment to be used
python:
Expand Down
74 changes: 37 additions & 37 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
# https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md
# Can be validated using `cffconvert --validate`
authors:
- family-names: "Stewart"
given-names: "Adam J."
- family-names: "Robinson"
given-names: "Caleb"
- family-names: "Corley"
given-names: "Isaac A."
- family-names: "Ortiz"
given-names: "Anthony"
- family-names: "Lavista Ferres"
given-names: "Juan M."
- family-names: "Banerjee"
given-names: "Arindam"
cff-version: "1.2.0"
message: "If you use this software, please cite it using the metadata from this file."
- family-names: 'Stewart'
given-names: 'Adam J.'
- family-names: 'Robinson'
given-names: 'Caleb'
- family-names: 'Corley'
given-names: 'Isaac A.'
- family-names: 'Ortiz'
given-names: 'Anthony'
- family-names: 'Lavista Ferres'
given-names: 'Juan M.'
- family-names: 'Banerjee'
given-names: 'Arindam'
cff-version: '1.2.0'
message: 'If you use this software, please cite it using the metadata from this file.'
preferred-citation:
authors:
- family-names: "Stewart"
given-names: "Adam J."
- family-names: "Robinson"
given-names: "Caleb"
- family-names: "Corley"
given-names: "Isaac A."
- family-names: "Ortiz"
given-names: "Anthony"
- family-names: "Lavista Ferres"
given-names: "Juan M."
- family-names: "Banerjee"
given-names: "Arindam"
collection-title: "Proceedings of the 30th International Conference on Advances in Geographic Information Systems"
collection-type: "proceedings"
- family-names: 'Stewart'
given-names: 'Adam J.'
- family-names: 'Robinson'
given-names: 'Caleb'
- family-names: 'Corley'
given-names: 'Isaac A.'
- family-names: 'Ortiz'
given-names: 'Anthony'
- family-names: 'Lavista Ferres'
given-names: 'Juan M.'
- family-names: 'Banerjee'
given-names: 'Arindam'
collection-title: 'Proceedings of the 30th International Conference on Advances in Geographic Information Systems'
collection-type: 'proceedings'
conference:
city: "Seattle"
city: 'Seattle'
name: "SIGSPATIAL '22"
region: "Washington"
doi: "10.1145/3557915.3560953"
region: 'Washington'
doi: '10.1145/3557915.3560953'
end: 12
isbn: "9781450395298"
isbn: '9781450395298'
month: 11
number: 19
publisher:
name: "Association for Computing Machinery"
name: 'Association for Computing Machinery'
start: 1
title: "TorchGeo: Deep Learning With Geospatial Data"
type: "conference-paper"
url: "https://dl.acm.org/doi/10.1145/3557915.3560953"
title: 'TorchGeo: Deep Learning With Geospatial Data'
type: 'conference-paper'
url: 'https://dl.acm.org/doi/10.1145/3557915.3560953'
year: 2022
title: "TorchGeo: Deep Learning With Geospatial Data"
title: 'TorchGeo: Deep Learning With Geospatial Data'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ trainer:
model:
class_path: ClassificationTask
init_args:
model: "resnet18"
model: 'resnet18'
in_channels: 13
num_classes: 10
data:
Expand Down
8 changes: 4 additions & 4 deletions experiments/ssl4eo/landsat/conf/l7irish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ trainer:
model:
class_path: SemanticSegmentationTask
init_args:
model: "unet"
backbone: "resnet18"
model: 'unet'
backbone: 'resnet18'
weights: null
in_channels: 9
num_classes: 5
loss: "ce"
loss: 'ce'
ignore_index: 0
lr: 1e-3
patience: 6
Expand All @@ -20,4 +20,4 @@ data:
patch_size: 224
num_workers: 16
dict_kwargs:
paths: "data/l7irish"
paths: 'data/l7irish'
8 changes: 4 additions & 4 deletions experiments/ssl4eo/landsat/conf/l8biome.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ trainer:
model:
class_path: SemanticSegmentationTask
init_args:
model: "unet"
backbone: "resnet18"
model: 'unet'
backbone: 'resnet18'
weights: null
in_channels: 11
num_classes: 5
loss: "ce"
loss: 'ce'
ignore_index: 0
lr: 1e-3
patience: 6
Expand All @@ -20,4 +20,4 @@ data:
patch_size: 224
num_workers: 16
dict_kwargs:
paths: "data/l8biome"
paths: 'data/l8biome'
Loading

0 comments on commit 6a5aaf4

Please sign in to comment.