Skip to content

Commit

Permalink
Adapted code style
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-e committed Aug 4, 2024
1 parent 418d1da commit a3d6c1a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
ignore = E203, W503
# line length is intentionally set to 80 here because black uses Bugbear
# See https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length for more details
max-line-length = 88
max-line-length = 95
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,5 @@ cython_debug/
# Debug files
arnis-debug-raw_data.json
arnis-debug-processed_data.json
arnis-debug-map.png
arnis-debug-map.png
image.img
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ docker cp CONTAINER_ID:/home/region DESTINATION_PATH
- Python 3
- ```pip install -r requirements.txt```

- To conform with style guide please format any changes
- To conform with style guide please format any changes and check the code quality
```black .```
```flake8 src/```

- Functionality should be covered by automated tests.
```python -m pytest```
Expand Down
2 changes: 1 addition & 1 deletion src/getData.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def getData(city, state, country, bbox, file, debug, download_method="requests")

query1 = f"""
[out:json][bbox:{bbox[1]},{bbox[0]},{bbox[3]},{bbox[2]}];
(
(
nwr["building"];
nwr["highway"];
nwr["landuse"];
Expand Down
25 changes: 13 additions & 12 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
# Ensure either bbox or city/state/country is provided
if not args.bbox and not (args.city and args.state and args.country):
print(
"Error! You must provide either a bounding box (bbox) or city/state/country (experimental) information."
"""Error! You must provide either a bounding box (bbox) or city/state/country \
(experimental) information."""
)
os._exit(1)

Expand Down Expand Up @@ -150,22 +151,22 @@ def saveRegion(region="all"):
print(f"Saved {region}")


from .tree import createTree
from .tree import createTree # noqa: E402


def run():
print(
"""\n
▄████████ ▄████████ ███▄▄▄▄ ▄█ ▄████████
███ ███ ███ ███ ███▀▀▀██▄ ███ ███ ███
███ ███ ███ ███ ███ ███ ███▌ ███ █▀
███ ███ ▄███▄▄▄▄██▀ ███ ███ ███▌ ███
▀███████████ ▀▀███▀▀▀▀▀ ███ ███ ███▌ ▀███████████
███ ███ ▀███████████ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ▄█ ███
███ █▀ ███ ███ ▀█ █▀ █▀ ▄████████▀
███ ███
▄████████ ▄████████ ███▄▄▄▄ ▄█ ▄████████
███ ███ ███ ███ ███▀▀▀██▄ ███ ███ ███
███ ███ ███ ███ ███ ███ ███▌ ███ █▀
███ ███ ▄███▄▄▄▄██▀ ███ ███ ███▌ ███
▀███████████ ▀▀███▀▀▀▀▀ ███ ███ ███▌ ▀███████████
███ ███ ▀███████████ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ▄█ ███
███ █▀ ███ ███ ▀█ █▀ █▀ ▄████████▀
███ ███
https://github.com/louis-e/arnis
"""
)
Expand Down

0 comments on commit a3d6c1a

Please sign in to comment.