Comments (1)
Additionally, when black runs in the CI, it comes up with the following error:
Run poetry run invoke black
--- /home/runner/work/nautobot-codename-ratchet/nautobot-codename-ratchet/tasks.py 2024-03-18 14:47:27.750691+00:00
+++ /home/runner/work/nautobot-codename-ratchet/nautobot-codename-ratchet/tasks.py 2024-03-18 14:47:43.549659+00:00
@@ -517,13 +517,15 @@
would reformat /home/runner/work/nautobot-codename-ratchet/nautobot-codename-ratchet/tasks.py
command += [
"mysql --user root --***",
'--execute="',
f"DROP DATABASE IF EXISTS {db_name};",
f"CREATE DATABASE {db_name};",
- ""
- if db_name == "$MYSQL_DATABASE"
- else f"GRANT ALL PRIVILEGES ON {db_name}.* TO $MYSQL_USER; FLUSH PRIVILEGES;",
+ (
+ ""
+ if db_name == "$MYSQL_DATABASE"
+ else f"GRANT ALL PRIVILEGES ON {db_name}.* TO $MYSQL_USER; FLUSH PRIVILEGES;"
+ ),
'"',
"&&",
"mysql",
f"--database={db_name}",
"--user=$MYSQL_USER",
Oh no! 💥 💔 💥
1 file would be reformatted, 17 files would be left unchanged.
When I try to correct for that error, it spirals out of control.
Run poetry run invoke black
--- /home/runner/work/nautobot-codename-ratchet/nautobot-codename-ratchet/tasks.py 2024-03-18 14:55:45.603081+00:00
+++ /home/runner/work/nautobot-codename-ratchet/nautobot-codename-ratchet/tasks.py 2024-03-18 14:56:01.983142+00:00
@@ -517,15 +517,17 @@
would reformat /home/runner/work/nautobot-codename-ratchet/nautobot-codename-ratchet/tasks.py
command += [
"mysql --user root --***",
'--execute="',
f"DROP DATABASE IF EXISTS {db_name};",
f"CREATE DATABASE {db_name};",
+ (
(
""
if db_name == "$MYSQL_DATABASE"
- else f"GRANT ALL PRIVILEGES ON {db_name}.* TO $MYSQL_USER; FLUSH PRIVILEGES;",
+ else f"GRANT ALL PRIVILEGES ON {db_name}.* TO $MYSQL_USER; FLUSH PRIVILEGES;"
),
+ ),
'"',
"&&",
"mysql",
f"--database={db_name}",
"--user=$MYSQL_USER",
Oh no! 💥 💔 💥
1 file would be reformatted, 17 files would be left unchanged.
from cookiecutter-nautobot-app.
Related Issues (20)
- Add test case checking/enforcing authentication on URL endpoints
- Add ability to run upstream testing github actions workflow manually HOT 2
- (tasks.py) Shell redirection from the local shell to docker-compose is not working in my dev environment
- tasks.py listed twice in nautobot-app .dockerignore
- Broken link on CookieCutter docs for Nautobot-App-SSOT
- Mkdocstrings deprecation warnings in dev environment
- Git complains about file ownership when running `invoke generate-release-notes`
- App development environments should set `NAUTOBOT_LOG_DEPRECATION_WARNINGS=true`
- Upgrading guide should document use of a constraints file to avoid inadvertent Nautobot upgrade
- Public Release Checklist
- Invoke build on new clone does not work HOT 1
- healthcheck needed for nautobot container to reduce startup noise
- Unable to Use Environment to Control Nautobot Version
- Add a `plugin_bin_requirements.txt` for binary packages in Dockerfile
- Add `invoke backup-media` and `invoke import-media` commands HOT 1
- Docs container errors out from freshly baked cookie HOT 2
- Provide ability to add additional system dependencies for app HOT 1
- invoke towncrier HOT 2
- `inv import-db` does not shut down `nautobot` service before importing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookiecutter-nautobot-app.