Skip to content

Commit 744fa3a

Browse files
authored
Merge pull request #99 from Point72/tkp/cop
Uplift to copier
2 parents a095d92 + bd35d2e commit 744fa3a

File tree

17 files changed

+466
-303
lines changed

17 files changed

+466
-303
lines changed

.copier-answers.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changes here will be overwritten by Copier
2+
_commit: 9642da9
3+
_src_path: https://github.com/python-project-templates/base.git
4+
add_docs: false
5+
add_extension: python
6+
add_wiki: true
7+
8+
github: Point72
9+
project_description: ccflow is a collection of tools for workflow configuration, orchestration,
10+
and dependency injection
11+
project_name: ccflow
12+
python_version_primary: '3.9'
13+
team: Point72, L.P.

.gitattributes

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
examples/* linguist-documentation
12
docs/* linguist-documentation
23
*.ipynb linguist-documentation
4+
Makefile linguist-documentation
35

4-
*.py text eol=lf
5-
*.md text eol=lf
6+
*.md text=auto eol=lf
7+
*.py text=auto eol=lf
8+
*.toml text=auto eol=lf
9+
*.yaml text=auto eol=lf

.github/CODE_OF_CONDUCT.md

Lines changed: 47 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -2,126 +2,75 @@
22

33
## Our Pledge
44

5-
We as members, contributors, and leaders pledge to make participation in our
6-
community a harassment-free experience for everyone, regardless of age, body
7-
size, visible or invisible disability, ethnicity, sex characteristics, gender
8-
identity and expression, level of experience, education, socio-economic status,
9-
nationality, personal appearance, race, religion, or sexual identity
10-
and orientation.
11-
12-
We pledge to act and interact in ways that contribute to an open, welcoming,
13-
diverse, inclusive, and healthy community.
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
1411

1512
## Our Standards
1613

17-
Examples of behavior that contributes to a positive environment for our
18-
community include:
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
1916

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
26-
overall community
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
2722

28-
Examples of unacceptable behavior include:
23+
Examples of unacceptable behavior by participants include:
2924

30-
* The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
3328
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
3631
* Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
32+
professional setting
3833

39-
## Enforcement Responsibilities
34+
## Our Responsibilities
4035

41-
Community leaders are responsible for clarifying and enforcing our standards of
42-
acceptable behavior and will take appropriate and fair corrective action in
43-
response to any behavior that they deem inappropriate, threatening, offensive,
44-
or harmful.
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
4539

46-
Community leaders have the right and responsibility to remove, edit, or reject
47-
comments, commits, code, wiki edits, issues, and other contributions that are
48-
not aligned to this Code of Conduct, and will communicate reasons for moderation
49-
decisions when appropriate.
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
5045

5146
## Scope
5247

53-
This Code of Conduct applies within all community spaces, and also applies when
54-
an individual is officially representing the community in public spaces.
55-
Examples of representing our community include using an official e-mail address,
56-
posting via an official social media account, or acting as an appointed
57-
representative at an online or offline event.
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
5854

5955
## Enforcement
6056

6157
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at [email protected].
63-
All complaints will be reviewed and investigated promptly and fairly.
64-
65-
All community leaders are obligated to respect the privacy and security of the
66-
reporter of any incident.
67-
68-
## Enforcement Guidelines
69-
70-
Community leaders will follow these Community Impact Guidelines in determining
71-
the consequences for any action they deem in violation of this Code of Conduct:
72-
73-
### 1. Correction
74-
75-
**Community Impact**: Use of inappropriate language or other behavior deemed
76-
unprofessional or unwelcome in the community.
77-
78-
**Consequence**: A private, written warning from community leaders, providing
79-
clarity around the nature of the violation and an explanation of why the
80-
behavior was inappropriate. A public apology may be requested.
81-
82-
### 2. Warning
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
8363

84-
**Community Impact**: A violation through a single incident or series
85-
of actions.
86-
87-
**Consequence**: A warning with consequences for continued behavior. No
88-
interaction with the people involved, including unsolicited interaction with
89-
those enforcing the Code of Conduct, for a specified period of time. This
90-
includes avoiding interactions in community spaces as well as external channels
91-
like social media. Violating these terms may lead to a temporary or
92-
permanent ban.
93-
94-
### 3. Temporary Ban
95-
96-
**Community Impact**: A serious violation of community standards, including
97-
sustained inappropriate behavior.
98-
99-
**Consequence**: A temporary ban from any sort of interaction or public
100-
communication with the community for a specified period of time. No public or
101-
private interaction with the people involved, including unsolicited interaction
102-
with those enforcing the Code of Conduct, is allowed during this period.
103-
Violating these terms may lead to a permanent ban.
104-
105-
### 4. Permanent Ban
106-
107-
**Community Impact**: Demonstrating a pattern of violation of community
108-
standards, including sustained inappropriate behavior, harassment of an
109-
individual, or aggression toward or disparagement of classes of individuals.
110-
111-
**Consequence**: A permanent ban from any sort of public interaction within
112-
the community.
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
11367

11468
## Attribution
11569

116-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117-
version 2.0, available at
118-
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
119-
120-
Community Impact Guidelines were inspired by [Mozilla's code of conduct
121-
enforcement ladder](https://github.com/mozilla/diversity).
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
12272

12373
[homepage]: https://www.contributor-covenant.org
12474

125-
For answers to common questions about this code of conduct, see the FAQ at
126-
https://www.contributor-covenant.org/faq. Translations are available at
127-
https://www.contributor-covenant.org/translations.
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ existing issues about the bug you would like to report.
2121
self-contained, i.e., can be copy-pasted into the Python interpreter or
2222
run as-is via `python myproblem.py`. If this is a problem with the C++
2323
interface, it should link to a buildable C++ project that demonstrates
24-
the issue.
24+
the issue.
2525
2626
```python
2727
@@ -38,7 +38,7 @@ the issue.
3838
full traceback -->
3939

4040
**Runtime Environment**
41-
<!-- Output from
41+
<!-- Output from
4242
4343
`import sys, csp; print(csp.__version__); print(sys.version); print(sys.platform)`.
4444
-->

.github/workflows/build.yaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ on:
77
tags:
88
- v*
99
paths-ignore:
10-
- docs/
1110
- LICENSE
1211
- README.md
1312
pull_request:
13+
branches:
14+
- main
1415
workflow_dispatch:
1516

1617
concurrency:
@@ -34,25 +35,24 @@ jobs:
3435
steps:
3536
- uses: actions/checkout@v4
3637

37-
- name: Set up Python ${{ matrix.python-version }}
38-
uses: actions/setup-python@v5
38+
- uses: actions-ext/python/setup@main
3939
with:
40-
python-version: ${{ matrix.python-version }}
41-
cache: 'pip'
42-
cache-dependency-path: 'pyproject.toml'
40+
version: ${{ matrix.python-version }}
4341

4442
- name: Install dependencies
4543
run: make develop
4644

47-
- name: Build
48-
run: make build
49-
5045
- name: Lint
5146
run: make lint
5247

48+
- name: Checks
49+
run: make checks
50+
51+
- name: Build
52+
run: make build
53+
5354
- name: Test
54-
run: make tests
55-
if: ${{ matrix.os == 'ubuntu-latest' }}
55+
run: make coverage
5656

5757
- name: Upload test results (Python)
5858
uses: actions/upload-artifact@v4
@@ -64,7 +64,7 @@ jobs:
6464
- name: Publish Unit Test Results
6565
uses: EnricoMi/publish-unit-test-result-action@v2
6666
with:
67-
files: junit.xml
67+
files: '**/junit.xml'
6868
if: ${{ matrix.os == 'ubuntu-latest' }}
6969

7070
- name: Upload coverage
@@ -75,3 +75,9 @@ jobs:
7575

7676
- name: Twine check
7777
run: make dist
78+
79+
- uses: actions/upload-artifact@v4
80+
with:
81+
name: dist-${{matrix.os}}
82+
path: dist
83+
if: matrix.os == 'ubuntu-latest'

.github/workflows/copier.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Copier Updates
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 5 * * 0"
7+
8+
jobs:
9+
update:
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions-ext/copier-update@main
16+
with:
17+
token: ${{ secrets.WORKFLOW_TOKEN }}

.github/workflows/wiki.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@ jobs:
2020
deploy:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- name: Checkout
24-
uses: actions/checkout@v4
25-
26-
- name: Make home file
27-
run: cp README.md docs/wiki/Home.md
28-
29-
- name: Upload Documentation to Wiki
30-
uses: Andrew-Chen-Wang/github-wiki-action@v5
23+
- uses: actions/checkout@v4
24+
- run: cp README.md docs/wiki/Home.md
25+
- uses: Andrew-Chen-Wang/github-wiki-action@v5
3126
with:
3227
path: docs/wiki

0 commit comments

Comments
 (0)