13 Commits

Author SHA1 Message Date
Ben Felder
251fe2b2fe
Remove unused imports in tools.py 2020-02-26 20:13:45 +01:00
Ben Felder
e7620aacce
Add test_create_path_filter 2020-02-26 17:03:44 +01:00
Jairo Llopis
fc6b364321
Reduce code complexity
As explained in #110, the dangling parameters for methods keep on complicating development.

A full code refactoring is too much work for now, but I did a little refactoring which consists in:

- Merge `Flags` into `ConfigData`, and remove anything related exclusively to flags.
- Any method that uses arguments from `ConfigData` gets instead a `conf: ConfigData` argument.
- `get_jinja_renderer()` removed; it's not useful as its little work can easily be done by `Renderer` itself.

This way, whenever we need a new config, we can just add it to `ConfigData` and use it more widely.

A full refactoring is still needed IMHO, where we have a main `Copier` class which handles its state and everything it needs (or it could be `CopierApp` instead), but that's more a design decision to be taken by the project leader.

@Tecnativa TT20357
2020-02-21 11:11:49 +00:00
Ben Felder
8054f925bb
Moved reference files to tests/reference_files/ 2019-09-29 01:49:51 +02:00
Ben Felder
b22488ff87
Formatted imports via isort. 2019-09-14 15:11:17 +02:00
Ben Felder
82ddf4adb7
Merged origin/master to solve conflicts. 2019-08-29 22:32:46 +02:00
Ben Felder
69760a583a Cleaned up imports. 2019-08-08 23:16:47 +02:00
Ben Felder
72ccdb66ba Moved config into its own submodule. 2019-07-20 22:55:51 +02:00
Ben Felder
4278dcb676 Moved default env options to conf. 2019-07-20 22:09:20 +02:00
Ben Felder
b5c8791b85 Cleanup up on tests. 2019-07-11 19:11:29 +02:00
Juan-Pablo Scaletti
5b52b37662 pathlib.Path ALL the paths! 2019-04-03 23:22:25 -05:00
Juan-Pablo Scaletti
9c9f5e7821 black-styled 2019-03-07 22:07:51 -05:00
Juan-Pablo Scaletti
5cea5d7ac7 Voodoo -> Copier 2019-02-11 22:32:34 -05:00