Skip to content

Commit de82918

Browse files
committed
modernizing repo, adding poe, removing nox, changing project structure
1 parent 62d0952 commit de82918

File tree

14 files changed

+552
-665
lines changed

14 files changed

+552
-665
lines changed
File renamed without changes.

{{cookiecutter.project_slug}}/.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[flake8]
2-
ignore = E203, E266, E501, W503, T499, ANN101, ANN102, ANN002, ANN003
2+
ignore = E203, E266, E501, W503, T499, ANN101, ANN102, ANN002, ANN003, S101, SCS108
33
max-line-length = 79
44
enable-extensions=G
55
#select = B,C,E,F,W,T4,T0,N8,DC,DAR,SCS
66
import-order-style = google
77
docstring-convention = google
8-
per-file-ignores = tests/*:DC,SCS,ANN,S101 noxfile.py:ANN,DAR101
8+
#per-file-ignores = tests/*:DC,SCS,ANN,S101 noxfile.py:ANN,DAR101
99
max-complexity = 10
1010
exclude =
1111
docs/

{{cookiecutter.project_slug}}/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,16 @@ USER user
1313

1414
ENV PATH /home/user/.local/bin:${PATH}
1515

16-
COPY src src
16+
COPY {{cookiecutter.package_name}} {{cookiecutter.package_name}}
1717
COPY tests tests
18-
COPY noxfile.py .
1918
COPY pyproject.toml .
2019
COPY poetry.lock .
2120
COPY .pre-commit-config.yaml .
2221
COPY .gitignore .
2322
COPY .flake8 .
2423

25-
RUN pip install nox --user && \
26-
nox -s install
24+
RUN pip install poetry poethepoet --user && \
25+
poe install
2726

28-
ENTRYPOINT ["nox", "-s"]
27+
ENTRYPOINT ["poe", "-q"]
2928
CMD ["run"]

{{cookiecutter.project_slug}}/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ This Project depends on the following projects.
118118
```
119119
3. Install pre-commit and poetry
120120
```sh
121-
nox -s install
121+
nox -s install-dev
122122
```
123123
4. Run tests
124124
```sh
@@ -200,7 +200,7 @@ Don't forget to give the project a star! Thanks again!
200200
<!-- LICENSE -->
201201
## License
202202

203-
Distributed under the {{cookiecutter.license}} License. See [`LICENSE.txt`](https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/blob/main/LICENSE.txt) for more information.
203+
Distributed under the {{cookiecutter.license}} License. See [`LICENSE`](https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/blob/main/LICENSE) for more information.
204204

205205
<p align="right">(<a href="#top">back to top</a>)</p>
206206

@@ -245,5 +245,5 @@ References and sources of inspiration
245245
[issues-shield]: https://img.shields.io/github/issues/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}.svg?style=for-the-badge
246246
[issues-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/issues
247247
[license-shield]: https://img.shields.io/badge/license-{{cookiecutter.license}}-green?style=for-the-badge
248-
[license-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/blob/main/LICENSE.txt
248+
[license-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/blob/main/LICENSE
249249

{{cookiecutter.project_slug}}/docs/uml/artifacts/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

{{cookiecutter.project_slug}}/noxfile.py

Lines changed: 0 additions & 144 deletions
This file was deleted.

0 commit comments

Comments
 (0)