Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Dockerfile
dist
data
_gen
_gen
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
charset = utf-8
insert_final_newline = true
indent_size = 4
indent_style = space
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
# copy changes to .stickler.yml
max-complexity = 15
ignore = W,E # use black for formatting
exclude = .venv, venv, .git, __pycache__, dist, data
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ __pycache__
[Ss]cripts
pyvenv.cfg
.venv
venv
pip-selfcheck.json

/data
/_gen
/_gen
4 changes: 2 additions & 2 deletions .stickler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ linters:
fixer: true
python: 3

# copied from tox.ini
# copied from .flake8
max-complexity: 15
ignore: W,E
exclude: .venv, .git, __pycache__, dist, data
exclude: .venv, venv, .git, __pycache__, dist, data

fixers:
enable: true
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ CMD poetry run ditto clone --dest-dir ./data && \
poetry run ditto transform \
--base-url='https://pokeapi.co' \
--src-dir=./data \
--dest-dir=./_gen
--dest-dir=./_gen
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Ditto

[https://bulbapedia.bulbagarden.net/wiki/Ditto_(Pokémon)](https://bulbapedia.bulbagarden.net/wiki/Ditto_(Pok%C3%A9mon))
# Ditto <img src='https://veekun.com/dex/media/pokemon/global-link/132.png' height=50px/>

This repository contains:

Expand All @@ -10,15 +8,23 @@ This repository contains:

## Usage

```
```sh
pip install pokeapi-ditto
ditto --help
```

## Development

```sh
poetry install
poetry run ditto --help
```

## Docker

You should have a Pokeapi server running on `localhost:80`.
You should have a PokeApi server running on `localhost:80`.

```sh
# runs clone, analyze, and transform all in one step
docker-compose up --build
```
Loading