agateblue / django-dynamic-preferences

Dynamic global and instance settings for your django project
https://django-dynamic-preferences.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
350 stars 87 forks source link

Running tests and flake8 #254

Closed henadzit closed 1 year ago

henadzit commented 3 years ago

Hi,

Thank you for amazing work and also for merging my latest PR!

I have a few questions regarding tests and flake8:

Thanks!

agateblue commented 2 years ago

Hi there! The current way to run tests is with tox. Once you have cloned the repo, run:

pip3 install --user tox
# run tests for all combinations of python and django versions
#(this will likely fail for some combinations, as you probably don't have multiple versions of python3 installed on your system)
tox
# run tests for a specific combination (here, django 3.1 on Python 3.9)
tox -e py39-django-31

All available combinations are described in the tox.ini file, let me know if it's working for you.

Regarding flake8, I'm not surprised, I don't think I've applied linting recommendations since years. Using something like black could be aa specific combination good idea to make the code more readable and solve a few flake8 in the process.

Apparently, Travis CI for open source projects is not free anymore. We'd have to migrate to something entirely different (possibly GitHub actions? I've never used it mysel though). I'd be happy to dedicate a few hours to help if you want to work on this!

agateblue commented 1 year ago

Closing because of inactivity, and we have migrated to github actions since then