You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Create a `dangerfile.py` in the root directory of your repository.
73
+
2. Set up the CI to execute the `danger-python` script after the test suite.
74
+
75
+
Example `.travis.yml` configuration:
76
+
77
+
```yaml
78
+
language: python
79
+
python:
80
+
- "3.7"
81
+
cache:
82
+
yarn: true
83
+
pip: true
84
+
directories:
85
+
- node_modules
86
+
install:
87
+
- pip install poetry
88
+
- poetry install
89
+
script:
90
+
- poetry run pytest
91
+
after_script:
92
+
- nvm install 10.16.0
93
+
- nvm use 10.16.0
94
+
- yarn global add danger
95
+
- pip install danger-python
96
+
- danger-python ci -v
97
+
```
98
+
72
99
### Development
73
100
74
-
To develop the code, clone the repository and run the following commands:
101
+
To develop the `danger-python`, clone the repository and run the following commands:
75
102
76
103
```sh
77
104
# install danger
@@ -95,6 +122,8 @@ python generate_scheme.py
95
122
96
123
This should update the `danger_python/models.py` file.
97
124
125
+
:warning: Please, be careful with the generation script since the `master` branch contains the hand edits to the schema. They are all covered by the test suite, though.
126
+
98
127
### Building plugins
99
128
100
129
To build a plugin, add a `danger-python` as a dependency and subclass the `DangerPlugin` class:
0 commit comments