Skip to content

Commit 7ae63ff

Browse files
authored
Merge pull request #66 from creativecommons/readme-dev-update
Readme dev update
2 parents 9d8633b + ebaa1cd commit 7ae63ff

File tree

1 file changed

+48
-37
lines changed

1 file changed

+48
-37
lines changed

README.md

Lines changed: 48 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This project seeks to quantify the size and diversity of the commons--the
99
collection of works that are openly licensed or in the public domain.
1010

1111

12-
## Code of Conduct
12+
## Code of conduct
1313

1414
[`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md):
1515
> The Creative Commons team is committed to fostering a welcoming community.
@@ -27,69 +27,79 @@ collection of works that are openly licensed or in the public domain.
2727
See [`CONTRIBUTING.md`](CONTRIBUTING.md).
2828

2929

30-
3130
## Development
3231

3332

3433
### Prerequisites
3534

3635
This repository uses [pipenv][pipenvdocs] to manage the required Python
3736
modules:
38-
- Linux: [Installing Pipenv][pipenvinstall]
39-
- macOS:
40-
1. Install [Homebrew][homebrew]
41-
2. Install pipenv:
37+
1. Install `pipenv`:
38+
- Linux: [Installing Pipenv][pipenvinstall]
39+
- macOS:
40+
1. Install [Homebrew][homebrew]
41+
2. Install pipenv:
4242
```shell
4343
brew install pipenv
4444
```
45-
3. Create the Python virtual environment and install prerequisites using
46-
`pipenv`:
47-
```shell
48-
pipenv sync --dev
49-
```
50-
4. Then you can run the static analysis tools:
51-
```shell
52-
./tools.sh
53-
```
45+
- Windows: [Installing Pipenv][pipenvinstall]
46+
2. Create the Python virtual environment and install prerequisites using
47+
`pipenv`:
48+
```shell
49+
pipenv sync --dev
50+
```
5451

5552
[pipenvdocs]: https://pipenv.pypa.io/en/latest/
53+
[pipenvinstall]: https://pipenv.pypa.io/en/latest/installation/
5654
[homebrew]: https://brew.sh/
57-
[pipenvinstall]: https://pipenv.pypa.io/en/latest/install/#installing-pipenv
5855

5956

60-
### Running Scripts that Require Client Credentials
57+
### Running scripts that require client cedentials
6158

62-
To successfully run scripts that require client credentials, you will need to follow these steps:
63-
1. Copy the contents of the `env.example` file in the script's directory to `.env`:
64-
```
65-
cp env.example .env
66-
```
67-
2. Uncomment the variables in the `.env` file and assign values as needed. See [`sources.md`](sources.md) on how to get credentials:
68-
```
69-
GOOGLE_API_KEYS=your_api_key
70-
PSE_KEY=your_pse_key
71-
```
72-
3. Save the changes to the `.env` file.
59+
To successfully run scripts that require client credentials, you will need to
60+
follow these steps:
61+
1. Copy the contents of the `env.example` file in the script's directory to
62+
`.env`:
63+
```shell
64+
cp env.example .env
65+
```
66+
2. Uncomment the variables in the `.env` file and assign values as needed. See
67+
[`sources.md`](sources.md) on how to get credentials:
68+
```
69+
GOOGLE_API_KEYS=your_api_key
70+
PSE_KEY=your_pse_key
71+
```
72+
3. Save the changes to the `.env` file.
73+
4. You should now be able to run scripts that require client credentials
74+
without any issues.
75+
76+
77+
### Static analysis
7378
74-
4. You should now be able to run scripts that require client credentials without any issues.
79+
The `dev/tools.sh` helper script runs the static analysis tools:
80+
```shell
81+
./dev/tools.sh
82+
```
7583
7684
77-
### Tooling
85+
### Resources
7886
7987
- **[Python Guidelines — Creative Commons Open Source][ccospyguide]**
80-
- [Black][black]: the uncompromising Python code formatter
81-
- [flake8][flake8]: a python tool that glues together pep8, pyflakes, mccabe,
82-
and third-party plugins to check the style and quality of some python code.
83-
- [isort][isort]: A Python utility / library to sort imports
88+
- [Black][black]: _the uncompromising Python code formatter_
89+
- [flake8][flake8]: _a python tool that glues together pep8, pyflakes, mccabe,
90+
and third-party plugins to check the style and quality of some python code._
91+
- [isort][isort]: _A Python utility / library to sort imports_
8492
- (It doesn't import any libraries, it only sorts and formats them.)
93+
- [ppypa/pipenv][pipenv]: _Python Development Workflow for Humans._
8594

8695
[ccospyguide]: https://opensource.creativecommons.org/contributing-code/python-guidelines/
8796
[black]: https://github.com/psf/black
8897
[flake8]: https://gitlab.com/pycqa/flake8
8998
[isort]: https://pycqa.github.io/isort/
99+
[pipenv]: https://github.com/pypa/pipenv
90100

91101

92-
## Data Sources
102+
## Data sources
93103

94104
Kindly visit the [`sources.md`](sources.md) file for it.
95105

@@ -99,12 +109,13 @@ Kindly visit the [`sources.md`](sources.md) file for it.
99109
For information on past efforts, see [`history.md`](history.md).
100110

101111

102-
## Copying & License
112+
## Copying & license
103113

104114

105115
### Code
106116

107-
[`LICENSE`](LICENSE): the code within this repository is licensed under the Expat/[MIT][mit] license.
117+
[`LICENSE`](LICENSE): the code within this repository is licensed under the
118+
Expat/[MIT][mit] license.
108119

109120
[mit]: http://www.opensource.org/licenses/MIT "The MIT License | Open Source Initiative"
110121

0 commit comments

Comments
 (0)