Skip to content

Commit 7661f70

Browse files
committed
01 Proper Package: Finish cleanup and copy over the Markdown for the first DDD step.
1 parent 5e6d346 commit 7661f70

25 files changed

+2705
-148
lines changed

.darglint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[darglint]
2+
strictness = long

.flake8

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[flake8]
2+
select = B,B9,C,D,DAR,E,F,N,RST,S,W
3+
ignore = E203,E501,RST201,RST203,RST301,W503,B008
4+
max-line-length = 80
5+
max-complexity = 10
6+
docstring-convention = google
7+
per-file-ignores =
8+
tests/*:S101
9+
src/psc/static/pyscript.py:D100,D101,D102,D103,D107,D200,D212,D415,N802,N806
10+
rst-roles = class,const,func,meth,mod,ref
11+
rst-directives = deprecated

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,8 @@ dmypy.json
136136
.pyre/
137137

138138
node_modules/
139+
140+
.idea
141+
/.nox/
142+
/dist/
143+
/docs/_build/

.pre-commit-config.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: black
5+
name: black
6+
entry: black
7+
language: system
8+
types: [python]
9+
require_serial: true
10+
- id: check-added-large-files
11+
name: Check for added large files
12+
entry: check-added-large-files
13+
language: system
14+
- id: check-toml
15+
name: Check Toml
16+
entry: check-toml
17+
language: system
18+
types: [toml]
19+
- id: check-yaml
20+
name: Check Yaml
21+
entry: check-yaml
22+
language: system
23+
types: [yaml]
24+
- id: darglint
25+
name: darglint
26+
entry: darglint
27+
language: system
28+
types: [python]
29+
stages: [manual]
30+
- id: end-of-file-fixer
31+
name: Fix End of Files
32+
entry: end-of-file-fixer
33+
language: system
34+
types: [text]
35+
stages: [commit, push, manual]
36+
- id: flake8
37+
name: flake8
38+
entry: flake8
39+
language: system
40+
types: [python]
41+
require_serial: true
42+
args: [--darglint-ignore-regex, .*]
43+
- id: isort
44+
name: isort
45+
entry: isort
46+
require_serial: true
47+
language: system
48+
types_or: [cython, pyi, python]
49+
args: ["--filter-files"]
50+
- id: pyupgrade
51+
name: pyupgrade
52+
description: Automatically upgrade syntax for newer versions.
53+
entry: pyupgrade
54+
language: system
55+
types: [python]
56+
args: [--py37-plus]
57+
- id: trailing-whitespace
58+
name: Trim Trailing Whitespace
59+
entry: trailing-whitespace-fixer
60+
language: system
61+
types: [text]
62+
stages: [commit, push, manual]
63+
# - repo: https://github.com/pre-commit/mirrors-prettier
64+
# rev: v2.6.0
65+
# hooks:
66+
# - id: prettier

.readthedocs.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
build:
3+
os: ubuntu-20.04
4+
tools:
5+
python: "3.10"
6+
sphinx:
7+
configuration: docs/conf.py
8+
formats: all
9+
python:
10+
install:
11+
- requirements: docs/requirements.txt
12+
- path: .

CODE_OF_CONDUCT.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Code of Conduct
2+
3+
The Code of Conduct is available in [the PyScript Governance repo](https://github.com/pyscript/governance/blob/main/CODE-OF-CONDUCT.md).
4+
See https://github.com/pyscript/governance/blob/main/CODE-OF-CONDUCT.md

CONTRIBUTING.MD

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ We try not to have strong boundaries in what kinds of contributions are accepted
3030

3131
- Adding meta-data
3232

33-
- adding tags to your example will help us organize this repository in a much more meaningful way. Example tags come at the beginning of your main `HTML` file in the form of a comment. See the [example](examples/hello_world.html)
34-
- you're also welcome to add your email or name or other forms of contact information in the header at the beginning of the file. See the [example](examples/hello_world.html)
33+
- adding tags to your example will help us organize this repository in a much more meaningful way. Example tags come at the beginning of your main `HTML` file in the form of a comment.
34+
- you're also welcome to add your email or name or other forms of contact information in the header at the beginning of the file.
35+
36+
TODO Add back in `See the example examples/hello_world.html`
3537

3638
- Adding docs
3739

@@ -52,7 +54,7 @@ The PyScript Collective also welcomes contributions like blog posts, videos, vid
5254

5355
The contributions in this topic are more similar to what an `awesome-page` would look like.
5456

55-
*If you want to add a new kind of contribution that wasn't laid out on the [README](README.md) yet, feel free to do so.*
57+
*If you want to add a new kind of contribution that wasn't laid out on the [README](index) yet, feel free to do so.*
5658

5759
#### Recommended guidelines for a resource
5860

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ We strive to make people feel valued and valuable and we hope to make lots of it
66

77
## Index
88

9-
[Examples]()
9+
TODO Link to Examples
1010

1111
## Resources
1212

@@ -15,3 +15,8 @@ We strive to make people feel valued and valuable and we hope to make lots of it
1515
* [Discussion Board](https://community.anaconda.cloud/c/tech-topics/pyscript)
1616
* [Blog Post](https://engineering.anaconda.com/2022/04/welcome-pyscript.html)
1717
* [Stack Overflow](https://stackoverflow.com/questions/tagged/PyScript)
18+
19+
<!-- github-only -->
20+
21+
[license]: https://github.com/pyscript/pyscript-collective/blob/main/LICENSE
22+
[contributor guide]: https://github.com/pyscript/pyscript-collective/blob/main/CONTRIBUTING.md

codecov.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
comment: false
2+
coverage:
3+
status:
4+
project:
5+
default:
6+
target: "100"
7+
patch:
8+
default:
9+
target: "100"

0 commit comments

Comments
 (0)