Skip to content
This repository was archived by the owner on Jun 21, 2024. It is now read-only.

Comments

Basic project scaffolding#1

Merged
chrisdevereux merged 14 commits intomainfrom
docsite
Nov 19, 2021
Merged

Basic project scaffolding#1
chrisdevereux merged 14 commits intomainfrom
docsite

Conversation

@chrisdevereux
Copy link
Contributor

@chrisdevereux chrisdevereux commented Nov 18, 2021

  • Sets up a documentation generator with auto-deploy to gh-pages (on merge to master)
  • Sets up code formatting hooks
  • Sets the license to GPLv3
  • Adds baseline libraries (django, etc) and maanges dependencies with Poetry.
  • Adds documentation section for dev setup

Copy link
Member

@conatus conatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, nice one.

I'd ask that we sort the numbering out in the README.md. Got some questions but they aren't blocking here.

hooks:
- id: isort
name: isort
entry: poetry run isort --settings-path pyproject.toml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool. As using isort is a little obscure, though really useful, could we have a one line comment in each of these steps explaining roughly what we are doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep!


We love development containers. They keep your development environment in a VM and isolated from the rest of your device which is good security practice. They also make it extremely easy to share editor configurations and development dependencies that can't be managed using language package managers.

Much as we hate to stan Microsoft, it's the easiest option to work on this library.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd link out to something here saying why Microsoft are bad news. Just to explain why.

- Python 3.9+
- Poetry

* Follow the installation instructions for [DjangoGIS's local dependencies](https://docs.djangoproject.com/en/3.2/ref/contrib/gis/install/postgis/).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want to use numbers not bullet points here for consistency.

### In Visual Studio Code

1. From the command palette select "Remote Containers: Clone Repository in Named Container Volume".
* Enter: `git@github.com:commonknowledge/pycommonknowledge.git`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want numbers, not bullet points for this list of instructions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was doing this so that it autonumbers the list, but not wedded to it, and it's good to have more readable source

docs/index.md Outdated

# Pycommonknowledge

An integrated and opinionated collection of Django applications and javascript components addressing needs for people building software for organisers and campaigners.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick, but Javascript is a proper noun.

Copy link
Member

@janbaykara janbaykara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Comment on lines +1 to +27
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->
<!--- If there's a Figma file or similar spec, please link to to the issue. -->

## Screenshots (if appropriate):

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] I've checked the spec (e.g. Figma file) and documented any divergences.
- [ ] My code follows the code style of this project.
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I've updated the documentation accordingly.
- [ ] Replace unused checkboxes with bullet points.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This template is inherited by the org-wide settings, so we don't need to include it in this repo. Duplicating it means we can craft it to fit this package's context better, but we lose automatic improvements from the upstream version. If we do duplicate, we could probably improve it by cutting line 24 (which is a duplicate!)

This should also be fixed in the org-wide version...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel that the org-wide settings need changing – they look pretty good to me, although sure they'll evolve as we use them more.

Just felt that a library has slightly different requirements for a PR than an application. They change a bit more in the forthcoming contributor guidelines PR.

@chrisdevereux chrisdevereux merged commit 68ad05d into main Nov 19, 2021
@chrisdevereux chrisdevereux deleted the docsite branch November 19, 2021 15:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants